MCPcopy
hub / github.com/vuejs/core / isIntegerKey

Function isIntegerKey

packages/shared/src/general.ts:77–81  ·  view source on GitHub ↗
(key: unknown)

Source from the content-addressed store, hash-verified

75 toTypeString(val) === '[object Object]'
76
77export const isIntegerKey = (key: unknown): boolean =>
78 isString(key) &&
79 key !== 'NaN' &&
80 key[0] !== '-' &&
81 '' + parseInt(key, 10) === key
82
83export const isReservedProp: (key: string) => boolean = /*@__PURE__*/ makeMap(
84 // the leading comma is intentional so empty string "" is also included

Callers 4

constructorMethod · 0.90
getMethod · 0.90
setMethod · 0.90
triggerFunction · 0.90

Calls 1

isStringFunction · 0.85

Tested by

no test coverage detected