'use strict';varGetIntrinsic=require('../GetIntrinsic');var$TypeError=GetIntrinsic('%TypeError%');varSameValue=require('./SameValue');varToNumber=require('./ToNumber');varToString=require('./ToString');varType=require('./Type');// https://ecma-international.org/ecma-262/6.0/#sec-canonicalnumericindexstringmodule.exports=functionCanonicalNumericIndexString(argument){if(Type(argument)!=='String'){thrownew$TypeError('Assertion failed: `argument` must be a String');}if(argument==='-0'){return-0;}varn=ToNumber(argument);if(SameValue(ToString(n),argument)){returnn;}returnvoid0;};