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

Function isMutableArrayOrTuple

test/fixtures/snapshot/typescript.js:67411–67413  ·  view source on GitHub ↗
(type)

Source from the content-addressed store, hash-verified

67409 return isArrayType(type) || isTupleType(type);
67410 }
67411 function isMutableArrayOrTuple(type) {
67412 return isArrayType(type) && !isReadonlyArrayType(type) || isTupleType(type) && !type.target.readonly;
67413 }
67414 function getElementTypeOfArrayType(type) {
67415 return isArrayType(type) ? getTypeArguments(type)[0] : undefined;
67416 }

Callers 3

structuredTypeRelatedToFunction · 0.85

Calls 3

isArrayTypeFunction · 0.85
isReadonlyArrayTypeFunction · 0.85
isTupleTypeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…