/berries

Set of javascript utils

Primary LanguageJavaScript

Berries

alt tag

how to install

npm i berries

how to use

const B = require('berries')

const items = B.flatten([1,[2,3,[4]],5])
// => [1,2,3,4,5]

More examples here

utils

  • asyncMap
  • capitalize
  • uncapitalize
  • classNames
  • clone
  • compose
  • findRightIndex
  • first
  • flatten
  • htmlQuotes
  • include
  • intersect
  • kindOf
  • last
  • nth
  • omit
  • pick
  • range
  • times
  • union
  • move