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