UNPKG

functional-augments

Version:

Augment collection prototypes with methods for functional programming, including filter(), map() and reduce().

10 lines (8 loc) 174 B
'use strict'; module.exports = o => (p, m) => Object.defineProperty(o.prototype, p, { configuable: true, enumerable: false, value: m, writable: true });