Node-Red configuration
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

to-property-key.js 333B

12345678910
  1. 'use strict';
  2. var toPrimitive = require('../internals/to-primitive');
  3. var isSymbol = require('../internals/is-symbol');
  4. // `ToPropertyKey` abstract operation
  5. // https://tc39.es/ecma262/#sec-topropertykey
  6. module.exports = function (argument) {
  7. var key = toPrimitive(argument, 'string');
  8. return isSymbol(key) ? key : key + '';
  9. };