You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Make isArrayLike check more precise to avoid false positives (immutable-js#1520)
* Update isArrayLike check to be more precise
Verify that a value is array-like by checking for
a numeric length and by confirming that it has the
length - 1 key set (even if it is undefined). If
length is 0, then check that it doesn’t have any
other properties other than length
* Array-likes may also have additional non-numeric keys
* Handle length === 0 edge case
* Ensure integer lengths
* Format
0 commit comments