1 | ;
|
2 | var anObject = require('../internals/an-object');
|
3 | var toPrimitive = require('../internals/to-primitive');
|
4 |
|
5 | module.exports = function (hint) {
|
6 | if (hint !== 'string' && hint !== 'number' && hint !== 'default') {
|
7 | throw TypeError('Incorrect hint');
|
8 | } return toPrimitive(anObject(this), hint !== 'number');
|
9 | };
|