blob: 0fbe9b807651e07bed71f33a21cc50be4cf26155 [file] [log] [blame]
Leo Repp58b9f112021-11-22 11:57:47 +01001'use strict';
2
3var toPrimitive = require('es-to-primitive/es2015');
4
5// https://ecma-international.org/ecma-262/6.0/#sec-toprimitive
6
7module.exports = function ToPrimitive(input) {
8 if (arguments.length > 1) {
9 return toPrimitive(input, arguments[1]);
10 }
11 return toPrimitive(input);
12};