@earthtone/tiny-curry

0.0.3 • Public • Published

Tiny Curry

A javascript curry function. That's it. Nothing else.


Basic Usage

import curry from '@earthtone/tiny-curry'

const get = curry((prop, obj) => obj[prop])
const getFirstName = get('first_name')

const result = getFirstName({
  first_name: 'Wally'
  last_name: 'West'
})

console.log(result) // -> 'Wally'

Readme

Keywords

Package Sidebar

Install

npm i @earthtone/tiny-curry

Weekly Downloads

1

Version

0.0.3

License

MIT

Unpacked Size

6.15 kB

Total Files

13

Last publish

Collaborators

  • earthtone