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