The abstract operation Call is used to call the [[Call]] internal method of a function object.
npm install simple-call-x href="https://travis-ci.org/Xotic750/simple-call-x"
title="Travis status"> src="https://travis-ci.org/Xotic750/simple-call-x.svg?branch=master"
alt="Travis status" height="18">
href="https://david-dm.org/Xotic750/simple-call-x"
title="Dependency status"> alt="Dependency status" height="18"/>
href="https://david-dm.org/Xotic750/simple-call-x?type=dev"
title="devDependency status"> alt="devDependency status" height="18"/>
href="https://badge.fury.io/js/simple-call-x"
title="npm version"> alt="npm version" height="18">
href="https://www.jsdelivr.com/package/npm/simple-call-x"
title="jsDelivr hits"> alt="jsDelivr hits" height="18">
href="https://bettercodehub.com/results/Xotic750/simple-call-x"
title="bettercodehub score"> alt="bettercodehub score" height="18">
href="https://coveralls.io/github/Xotic750/simple-call-x?branch=master"
title="Coverage Status"> alt="Coverage Status" height="18">
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.
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
``js
import call from 'simple-call-x';
console.log(call([].split, '123', '')); // ['1', '2', '3']
``