You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ToPrimitive.js 291B

123456789101112
  1. 'use strict';
  2. var toPrimitive = require('es-to-primitive/es2015');
  3. // https://www.ecma-international.org/ecma-262/6.0/#sec-toprimitive
  4. module.exports = function ToPrimitive(input) {
  5. if (arguments.length > 1) {
  6. return toPrimitive(input, arguments[1]);
  7. }
  8. return toPrimitive(input);
  9. };