DEV Community

Cover image for rubico v1.2 release notes
Richard Tong
Richard Tong

Posted on • Updated on

rubico v1.2 release notes

rubico v1.2 is out! Here's a summary of the changes.

v1.2.0

  • flatMap; map + flatten
  • transform(f, init), reduce(f, init); init can be a function
  • rubico/x/defaultsDeep - deeply assign defaults
  • rubico/x/isDeepEqual - left deeply equals right? eager version of eq.deep
  • rubico/x/find - get the first item in a collection that passes the test
  • rubico/x/forEach - execute a function for each item of a collection, returning input
  • rubico/x/is - directly checks the constructor
  • rubico/x/isEqual - left strictly equals right? eager version of eq
  • rubico/x/isObject - is object?
  • rubico/x/isString - is string?
  • rubico/x/pluck - create a new collection by getting a path from every item of an old collection
  • rubico/x/unionWith - create a flattened unique array with uniques given by a binary predicate

Also renamed rubico.js -> esm.js. This is for esm imports like

import rubico from 'https://unpkg.com/rubico/esm.js'
Enter fullscreen mode Exit fullscreen mode

Top comments (1)

Collapse
 
artydev profile image
artydev

Great , thank you very much :-)