Sha256: c88cc264a1716c8da57aa32c5b03c6e5ca19b52017d860790c3b0d83e821900c
Contents?: true
Size: 400 Bytes
Versions: 493
Compression:
Stored size: 400 Bytes
Contents
'use strict'; var GetIntrinsic = require('get-intrinsic'); var $String = GetIntrinsic('%String%'); var ToPrimitive = require('./ToPrimitive'); var ToString = require('./ToString'); // https://262.ecma-international.org/6.0/#sec-topropertykey module.exports = function ToPropertyKey(argument) { var key = ToPrimitive(argument, $String); return typeof key === 'symbol' ? key : ToString(key); };
Version data entries
493 entries across 52 versions & 2 rubygems