simple-call-x
The abstract operation Call is used to call the [[Call]] internal method of a function object.
Last updated 5 years ago by xotic750 .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install simple-call-x 
SYNC missed versions from official npm registry.

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

simple-call-x

The abstract operation Call is used to call the [[Call]] internal method of a function object. The operation is called with arguments F, V , and optionally argumentsList where F is the function object, V is an ECMAScript language value that is the this value of the [[Call]], and argumentsList is the value passed to the corresponding argument of the internal method. If argumentsList is not present, an empty List is used as its value.

module.exports*

The abstract operation Call is used to call the [[Call]] internal method of a function object.

Kind: Exported member
Returns: * - The target.
Throws:

  • TypeError If target is not a function.
  • @param {Function} F - The target function.
  • @param {*} [V] - The context.
  • @param {Array} [args] - Arguments to call the function with.
Param Type Description
F Function The target function.
[V] * The context.
[args] Array Arguments to call the function with.

Example

import call from 'simple-call-x';

console.log(call([].split, '123', '')); // ['1', '2', '3']

Current Tags

  • 1.0.3                                ...           latest (5 years ago)

4 Versions

  • 1.0.3                                ...           5 years ago
  • 1.0.2                                ...           5 years ago
  • 1.0.1                                ...           5 years ago
  • 1.0.0                                ...           5 years ago
Maintainers (1)
Downloads
Total 0
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (2)

© 2010 - cnpmjs.org x YWFE | Home | YWFE