Sha256: 8cb3f9e18fd1e61a9c2839e5a80471ee1c26e0e08283d5c42245cfb6b5e12007
Contents?: true
Size: 501 Bytes
Versions: 112
Compression:
Stored size: 501 Bytes
Contents
'use strict'; var GetIntrinsic = require('get-intrinsic'); var $TypeError = GetIntrinsic('%TypeError%'); var NumberBitwiseOp = require('../NumberBitwiseOp'); var Type = require('../Type'); // https://262.ecma-international.org/11.0/#sec-numeric-types-number-bitwiseOR module.exports = function NumberBitwiseOR(x, y) { if (Type(x) !== 'Number' || Type(y) !== 'Number') { throw new $TypeError('Assertion failed: `x` and `y` arguments must be Numbers'); } return NumberBitwiseOp('|', x, y); };
Version data entries
112 entries across 30 versions & 4 rubygems