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
{{ message }}
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.
The isArrayLike test in 1.0 worked properly with any string values, returning true (since they can be indexed just like String objects and work with functions like Array.prototype.forEach). The new test in 1.2 (introduced by #3356) raises a TypeError, because the in operator cannot be used on a non-object.
The text was updated successfully, but these errors were encountered:
Wasn't there another issue recently saying that isArrayLike was reporting false positives for anything with a 'length' property (IE string primitives)? #4751
The
isArrayLike
test in 1.0 worked properly with any string values, returningtrue
(since they can be indexed just likeString
objects and work with functions likeArray.prototype.forEach
). The new test in 1.2 (introduced by #3356) raises aTypeError
, because thein
operator cannot be used on a non-object.The text was updated successfully, but these errors were encountered: