Set of javascript utils
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
spec/support
.gitignore
index.js
logo.jpg
package.json
readme.md

readme.md

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