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
Helped a co-worker this morning try to figure out why _.each wasn't working for his object (which happened to have a length field on it). There are several ways to check for arrays that I know of (Object.prototype.toString, checking constructor), is there any reason that the choice was made to go for .length?
The text was updated successfully, but these errors were encountered:
Helped a co-worker this morning try to figure out why
_.each
wasn't working for his object (which happened to have a length field on it). There are several ways to check for arrays that I know of (Object.prototype.toString
, checkingconstructor
), is there any reason that the choice was made to go for.length
?The text was updated successfully, but these errors were encountered: