Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

17 Commits

Repository files navigation

Metho Function

Function prototype extensions using the Metho library:

Usage

import{curried,memoised}from'metho-function'// curried - returns a curried version of the function (created on first access)constadd=(a,b,c)=>a+b+cadd(1,2,3)// 6add[curried](1)(2)(3)// 6// memoised - returns a memoised version of the function (created on first access)expensiveFunction[memoised](a,b,c)expensiveFunction[memoised](a,b,c)// this will be a memoised run - faster// memoized - alias of memoised

About

Function prototype extensions

Resources

Stars

4 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages