8 lines
192 B
Plaintext
8 lines
192 B
Plaintext
'use strict';
|
|
|
|
// https://262.ecma-international.org/16.0/#sec-canonicalizekeyedcollectionkey
|
|
|
|
module.exports = function CanonicalizeKeyedCollectionKey(key) {
|
|
return key === 0 ? +0 : key;
|
|
};
|