Sha256: 160d33dd456a641bcf4d3e735f6acdb03a5864f1624d434c36236abcf8627775
Contents?: true
Size: 472 Bytes
Versions: 27
Compression:
Stored size: 472 Bytes
Contents
'use strict'; var GetIntrinsic = require('get-intrinsic'); var $TypeError = GetIntrinsic('%TypeError%'); var callBound = require('call-bind/callBound'); var $keyFor = callBound('Symbol.keyFor', true); var Type = require('./Type'); // https://262.ecma-international.org/14.0/#sec-keyforsymbol module.exports = function KeyForSymbol(sym) { if (Type(sym) !== 'Symbol') { throw new $TypeError('Assertion failed: `sym` must be a Symbol'); } return $keyFor(sym); };
Version data entries
27 entries across 27 versions & 2 rubygems