lazy.js v0.2.0 Release Notes
-
- โก๏ธ updated
Lazy()
helper function to throw an error onnull
orundefined
- ๐ changed behavior of
Sequence.define
--init
no longer must acceptparent
as a first parameter (see #45) - โ added
ArrayLikeSequence.define
,ObjectLikeSequence.define
, andStringLikeSequence.define
- โ added
takeWhile
,dropWhile
, andconsecutive
- implemented many string-specific methods for
StringLikeSequence
:indexOf
,lastIndexOf
, andcontains
(all accept a substring)startsWith
andendsWith
reverse
(returns aStringLikeSequence
)toUpperCase
andtoLowerCase
charCodeAt
substring
- implemented array-specific methods for
ArrayLikeSequence
:pop
shift
slice
- โ added support for supplying
pluck
-style callbacks (strings) tomap
,filter
,sortBy
,groupBy
,countBy
,any
, andall
- now
groupBy
andcountBy
both return anObjectLikeSequence
- โ added value selector callbacks to
min
,max
, andsum
- ๐ fixed some cases where
each
did not pass along an index with each element - ๐ fixed
map().async()
- ๐ fixed handling of
NaN
in some cases - โ added
Lazy.noop
andLazy.identity
convenience methods
- โก๏ธ updated