Skip to content

Instantly share code, notes, and snippets.

@furf
furf / fu.js
Last active January 26, 2021 05:25
furf’s functional funpack
/**
* Introducing fu: furf's functional funpack.
* "Putting the F-U back in JS!"
*
* fu.Array.map([1, 2, 3], a => a * 2) => [2, 4, 6]
* fu.String.repeat('fu ', 3) => "fu fu fu"
*/
this.fu = (function() {
const call = Function.prototype.call;