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]

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.4
    438
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.4
    438
  • 1.0.3
    1
  • 1.0.2
    1
  • 1.0.1
    0
  • 1.0.0
    1

Package Sidebar

Install

npm i simple-methodize-x

Weekly Downloads

441

Version

1.0.4

License

MIT

Unpacked Size

89.6 kB

Total Files

11

Last publish

Collaborators

  • xotic750