main
Last change
on this file was 79a0317, checked in by stefan toskovski <stefantoska84@…>, 2 weeks ago |
F4 Finalna Verzija
|
-
Property mode
set to
100644
|
File size:
333 bytes
|
Rev | Line | |
---|
[79a0317] | 1 | 'use strict';
|
---|
| 2 | var toPrimitive = require('../internals/to-primitive');
|
---|
| 3 | var isSymbol = require('../internals/is-symbol');
|
---|
| 4 |
|
---|
| 5 | // `ToPropertyKey` abstract operation
|
---|
| 6 | // https://tc39.es/ecma262/#sec-topropertykey
|
---|
| 7 | module.exports = function (argument) {
|
---|
| 8 | var key = toPrimitive(argument, 'string');
|
---|
| 9 | return isSymbol(key) ? key : key + '';
|
---|
| 10 | };
|
---|
Note:
See
TracBrowser
for help on using the repository browser.