MCPcopy Index your code
hub / github.com/nodejs/node / isNumericComputedName

Function isNumericComputedName

test/fixtures/snapshot/typescript.js:73441–73445  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

73439 }
73440 }
73441 function isNumericComputedName(name) {
73442 // It seems odd to consider an expression of type Any to result in a numeric name,
73443 // but this behavior is consistent with checkIndexedAccess
73444 return isTypeAssignableToKind(checkComputedPropertyName(name), 296 /* TypeFlags.NumberLike */);
73445 }
73446 function checkComputedPropertyName(node) {
73447 var links = getNodeLinks(node.expression);
73448 if (!links.resolvedType) {

Callers 1

isNumericNameFunction · 0.85

Calls 2

isTypeAssignableToKindFunction · 0.85

Tested by

no test coverage detected