Socket
Socket
Sign inDemoInstall

simple-call-x

Package Overview
Dependencies
9
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    simple-call-x

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


Version published
Weekly downloads
1.1K
decreased by-7.74%
Maintainers
1
Install size
387 kB
Created
Weekly downloads
 

Readme

Source

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.
ParamTypeDescription
FFunctionThe target function.
[V]*The context.
[args]ArrayArguments to call the function with.

Example

import call from 'simple-call-x';

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

Keywords

FAQs

Last updated on 28 Aug 2019

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc