simple-call-x

v1.0.3
The abstract operation Call is used to call the [[Call]] internal method of a function object.
simple abstract call module javascript nodejs browser

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']
npm i simple-call-x

Metadata

  • MIT
  • >=8.11.4
  • Graham Fairweather
  • released 8/28/2019

Downloads

Maintainers