lazy.js v0.2.0 Release Notes

    • โšก๏ธ updated Lazy() helper function to throw an error on null or undefined
    • ๐Ÿ”„ changed behavior of Sequence.define -- init no longer must accept parent as a first parameter (see #45)
    • โž• added ArrayLikeSequence.define, ObjectLikeSequence.define, and StringLikeSequence.define
    • โž• added takeWhile, dropWhile, and consecutive
    • implemented many string-specific methods for StringLikeSequence:
      • indexOf, lastIndexOf, and contains (all accept a substring)
      • startsWith and endsWith
      • reverse (returns a StringLikeSequence)
      • toUpperCase and toLowerCase
      • charCodeAt
      • substring
    • implemented array-specific methods for ArrayLikeSequence:
      • pop
      • shift
      • slice
    • โž• added support for supplying pluck-style callbacks (strings) to map, filter, sortBy, groupBy, countBy, any, and all
    • now groupBy and countBy both return an ObjectLikeSequence
    • โž• added value selector callbacks to min, max, and sum
    • ๐Ÿ›  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 and Lazy.identity convenience methods