MCPcopy Create free account
hub / github.com/arktypeio/arktype / arrayPathKeyOf

Function arrayPathKeyOf

ark/aot/settingsValidators.ts:523–526  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

521var arrayIndexMatcher = /* @__PURE__ */ new RegExp(arrayIndexSource)
522var maxArrayLength = 4294967295
523var arrayPathKeyOf = k =>
524 typeof k === "string" && arrayIndexMatcher.test(k) && +k < maxArrayLength ?
525 +k
526 : k
527
528// ark/type/checkers.ts
529var transformedBy = ({ t }, data, ctx) =>

Callers 2

checkerFunction · 0.90
checkerFunction · 0.70

Calls 1

testMethod · 0.80

Tested by

no test coverage detected