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

Function hasNumericPropertyNames

test/fixtures/snapshot/typescript.js:75193–75195  ·  view source on GitHub ↗

* Return true if the given type is considered to have numeric property names.

(type)

Source from the content-addressed store, hash-verified

75191 * Return true if the given type is considered to have numeric property names.
75192 */
75193 function hasNumericPropertyNames(type) {
75194 return getIndexInfosOfType(type).length === 1 && !!getIndexInfoOfType(type, numberType);
75195 }
75196 /**
75197 * Return true if given node is an expression consisting of an identifier (possibly parenthesized)
75198 * that references a for-in variable for an object with numeric property names.

Calls 2

getIndexInfosOfTypeFunction · 0.85
getIndexInfoOfTypeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…