Package Exports
- radash
- radash/dist/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (radash) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Radash
Its like Ramda or Lodash because its just a library of simple, small, utility functions. Its not like Ramda or Lodash because you can open it up and easily read and understand all of them.
Install
yarn add radashor
npm install radashTypes are included, if your into that.
Usage
import _ from 'radash'
const list = [1, 2, 3, 4, 5, 6]
const oddsSquared = _.select(list, x = x*x, x => x % 2)
const { odds, evens } = _.group(list, x => x % 2 ? 'odds' : 'evens' )