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 like _.sample, _.first, _.initial, _.last, & _.rest have guards to support being used as an iteratee for methods like _.map. I think it'd be great if this was expanded to other methods that can operate with just 1 param, like _.template, _.sortBy, _.uniq, _.flatten, _.min, _.max, & so on. Support can be added to some by adding a simple guard check while others may require a helper.
The text was updated successfully, but these errors were encountered:
I suggest adding this only to the functions for which a simple guard is sufficient. That helper looks like a pessimization as well as a potentially serious breaking change.
Methods like
_.sample
,_.first
,_.initial
,_.last
, &_.rest
have guards to support being used as an iteratee for methods like_.map
. I think it'd be great if this was expanded to other methods that can operate with just 1 param, like_.template
,_.sortBy
,_.uniq
,_.flatten
,_.min
,_.max
, & so on. Support can be added to some by adding a simpleguard
check while others may require a helper.The text was updated successfully, but these errors were encountered: