f5de11c3f6f043ba87086f57daf05ab7e9864c2529199d754efb623037339159f1e0c39e4591e674e0c3a6b15238ab96846cad9675c7a81015c69f6b900d83 391 B

1234567891011121314
  1. 'use strict';
  2. var $TypeError = require('es-errors/type');
  3. // https://262.ecma-international.org/11.0/#sec-numeric-types-bigint-lessThan
  4. module.exports = function BigIntLessThan(x, y) {
  5. if (typeof x !== 'bigint' || typeof y !== 'bigint') {
  6. throw new $TypeError('Assertion failed: `x` and `y` arguments must be BigInts');
  7. }
  8. // shortcut for the actual spec mechanics
  9. return x < y;
  10. };