JavaScript Function prototype extensions using Metho
npm install metho-functionFunction prototype extensions using the Metho library:
``js
import { curried, memoised } from 'metho-function'
// curried - returns a curried version of the function (created on first access)
const add = (a, b, c) => a+b+c
add(1, 2, 3) // 6
addcurried(2)(3) // 6
// memoised - returns a memoised version of the function (created on first access)
expensiveFunctionmemoised
expensiveFunctionmemoised // this will be a memoised run - faster
// memoized - alias of memoised
``