Nitrogenous Polymorphic Molecule
Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

simple-methodize-x

1.0.4 • Public • Published

Travis status Dependency status devDependency status npm version jsDelivr hits bettercodehub score Coverage Status

simple-methodize-x

Methodize a prototype method. Compliant to 8 arguments.

module.exports*

Methodize a prototype method. Compliant to 8 arguments.

Kind: Exported member
Returns: Function - The static method. Throws:

  • TypeError If prototypeMethod is not a function.
Param Type Description
prototypeMethod Function The prototype method.

Example

import methodize from 'simple-methodize-x';
 
const push = methodize([].push);
const array = [];
push(array, 1);
push(array, 2);
console.log(array); // [1, 2]

Install

npm i simple-methodize-x

DownloadsWeekly Downloads

4,061

Version

1.0.4

License

MIT

Unpacked Size

89.6 kB

Total Files

11

Last publish

Collaborators

  • avatar