fix(reactivity): add NaN prop on Array should not trigger length dependency. (#1998)
This commit is contained in:
@@ -87,7 +87,10 @@ export const isPlainObject = (val: unknown): val is object =>
|
||||
toTypeString(val) === '[object Object]'
|
||||
|
||||
export const isIntegerKey = (key: unknown) =>
|
||||
isString(key) && key[0] !== '-' && '' + parseInt(key, 10) === key
|
||||
isString(key) &&
|
||||
key !== 'NaN' &&
|
||||
key[0] !== '-' &&
|
||||
'' + parseInt(key, 10) === key
|
||||
|
||||
export const isReservedProp = /*#__PURE__*/ makeMap(
|
||||
'key,ref,' +
|
||||
|
||||
Reference in New Issue
Block a user