https://github.com/matryer/funkjs
A sweet selection of JavaScript funktion extensions
https://github.com/matryer/funkjs
Last synced: about 2 months ago
JSON representation
A sweet selection of JavaScript funktion extensions
- Host: GitHub
- URL: https://github.com/matryer/funkjs
- Owner: matryer
- Created: 2011-09-07T16:59:37.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2011-09-20T18:51:43.000Z (over 13 years ago)
- Last Synced: 2025-01-13T23:43:17.362Z (3 months ago)
- Language: JavaScript
- Homepage: http://www.funkjs.com/
- Size: 113 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
README
funkjs
A sweet selection of JavaScript funky function extensions that let you do all sorts of nice things when coding JavaScript.
For a list of capabilities, check out the tests: https://github.com/matryer/funkjs/tree/master/test/tests
---
funk.bind - Binds context (this) and arguments to a function
funk.block - Blocks a function to prevent it from doing anything
funk.chain - Chains two or more functions together
funk.clean - Removes all funky magic from a function (i.e. reverts it back to before any funk operations)
funk.times - Returns a function that calls the original function a specific number of times
funk.track - Keeps track of all calls to the function (great for testing)And some internal stuff:
funk.functions - Gathers all functions from arguments and arrays