main
Last change
on this file was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago |
Update repo after prototype presentation
|
-
Property mode
set to
100644
|
File size:
282 bytes
|
Rev | Line | |
---|
[d565449] | 1 | 'use strict';
|
---|
| 2 |
|
---|
| 3 | var toPrimitive = require('es-to-primitive/es2015');
|
---|
| 4 |
|
---|
| 5 | // https://262.ecma-international.org/6.0/#sec-toprimitive
|
---|
| 6 |
|
---|
| 7 | module.exports = function ToPrimitive(input) {
|
---|
| 8 | if (arguments.length > 1) {
|
---|
| 9 | return toPrimitive(input, arguments[1]);
|
---|
| 10 | }
|
---|
| 11 | return toPrimitive(input);
|
---|
| 12 | };
|
---|
Note:
See
TracBrowser
for help on using the repository browser.