0.0.1 • Published 4 years ago

butwhy v0.0.1

Weekly downloads
4
License
ISC
Repository
github
Last release
4 years ago

butwhy: Some things about JavaScript I think are weird, in library form

Most of the stuff in here doesn't serve any practical purpose.

API

Functions

decouple(a, ...p)

Copy an object and, if a property is a Function, bind it to the result.

const { map, concat } = decouple([0], 'map', 'concat', 'unshift');
map(i => i + 1) // -> [1]