Sha256: e91c1078558c0a929bb7a9b971738adc786d6ec23f876f79d64768b71d855141

Contents?: true

Size: 317 Bytes

Versions: 66

Compression:

Stored size: 317 Bytes

Contents

'use strict';
var anObject = require('./_an-object');
var toPrimitive = require('./_to-primitive');
var NUMBER = 'number';

module.exports = function (hint) {
  if (hint !== 'string' && hint !== NUMBER && hint !== 'default') throw TypeError('Incorrect hint');
  return toPrimitive(anObject(this), hint != NUMBER);
};

Version data entries

66 entries across 30 versions & 8 rubygems

Version Path
immosquare-cleaner-0.1.42 node_modules/core-js/library/modules/_date-to-primitive.js
immosquare-cleaner-0.1.42 node_modules/core-js/modules/_date-to-primitive.js
immosquare-cleaner-0.1.41 node_modules/core-js/modules/_date-to-primitive.js
immosquare-cleaner-0.1.41 node_modules/core-js/library/modules/_date-to-primitive.js
immosquare-cleaner-0.1.40 node_modules/core-js/library/modules/_date-to-primitive.js
immosquare-cleaner-0.1.40 node_modules/core-js/modules/_date-to-primitive.js
optimacms-0.1.61 spec/dummy/node_modules/babel-runtime/node_modules/core-js/modules/_date-to-primitive.js
optimacms-0.1.61 spec/dummy/node_modules/babel-runtime/node_modules/core-js/library/modules/_date-to-primitive.js
ilog-0.4.1 node_modules/babel-register/node_modules/core-js/modules/_date-to-primitive.js
ilog-0.4.1 node_modules/babel-runtime/node_modules/core-js/modules/_date-to-primitive.js
ilog-0.4.1 node_modules/babel-runtime/node_modules/core-js/library/modules/_date-to-primitive.js
ilog-0.4.1 node_modules/babel-register/node_modules/core-js/library/modules/_date-to-primitive.js
ilog-0.4.0 node_modules/babel-register/node_modules/core-js/modules/_date-to-primitive.js
ilog-0.4.0 node_modules/babel-register/node_modules/core-js/library/modules/_date-to-primitive.js
ilog-0.4.0 node_modules/babel-runtime/node_modules/core-js/library/modules/_date-to-primitive.js
ilog-0.4.0 node_modules/babel-runtime/node_modules/core-js/modules/_date-to-primitive.js
ilog-0.3.3 node_modules/babel-register/node_modules/core-js/library/modules/_date-to-primitive.js
ilog-0.3.3 node_modules/babel-runtime/node_modules/core-js/modules/_date-to-primitive.js
ilog-0.3.3 node_modules/babel-runtime/node_modules/core-js/library/modules/_date-to-primitive.js
ilog-0.3.3 node_modules/babel-register/node_modules/core-js/modules/_date-to-primitive.js