Sha256: 7fd1df87433c3d37fdc164aa7b5fc13965a50836cffd9b0d837e835a6de7ec83
Contents?: true
Size: 327 Bytes
Versions: 29
Compression:
Stored size: 327 Bytes
Contents
'use strict'; var anObject = require('../internals/an-object'); var toPrimitive = require('../internals/to-primitive'); module.exports = function (hint) { if (hint !== 'string' && hint !== 'number' && hint !== 'default') { throw TypeError('Incorrect hint'); } return toPrimitive(anObject(this), hint !== 'number'); };
Version data entries
29 entries across 28 versions & 9 rubygems