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
Methods whose signature is (value [, number]) cannot be used directly as array iterators whose 2nd argument is the array index. It'd be useful add guard params that allow the following examples to work with standard array methods:
We can achieve this similar to how underscore uses guard params. For example:
functionrectangle(el,pad,guard){pad=!guard&&+pad||0;// number and not NaN
We had some partial undocumented support for this in some versions. We should add it to all applicable methods with this signature and document the usage.
The text was updated successfully, but these errors were encountered:
Methods whose signature is
(value [, number])
cannot be used directly as array iterators whose 2nd argument is the array index. It'd be useful addguard
params that allow the following examples to work with standard array methods:We can achieve this similar to how underscore uses
guard
params. For example:We had some partial undocumented support for this in some versions. We should add it to all applicable methods with this signature and document the usage.
The text was updated successfully, but these errors were encountered: