npm install plyply is a collection of wrappers around Function.prototype.apply.
  

  
It's trivial to implement, but in order to keep code DRY (and avoid silly mistakes) it makes sense to define this function only once per project. This library is the logical consequence of that.
``sh`
npm install ply
`sh`
git clone https://github.com/pluma/ply.git
cd ply
npm install
make
`sh`
component install pluma/ply
`sh`
bower install ply
Download the latest minified CommonJS release and add it to your project.
Learn more about CommonJS modules.
Download the latest minified AMD release and add it to your project.
Download the latest minified standalone release and add it to your project.
`html`
This makes the ply module available in the global namespace.
`javascript
var mcall = require('ply').mcall;
mcall(console, 'log', 'Hello', 'World'); // 'Hello' 'World'
`
Equivalent to the following:
`javascript`
fn.apply(self, args);
Equivalent to the following:
`javascript`
fn.call(self, args...);
Equivalent to the following:
`javascript`
fn.apply(this, args);
Equivalent to the following:
`javascript`
fn.call(this, args...);
Equivalent to the following:
`javascript`
obj[name].apply(obj, args);
Equivalent to the following:
`javascript``
obj[name].call(obj, args...);
This is free and unencumbered public domain software. For more information, see http://unlicense.org/ or the accompanying UNLICENSE file.