
Product
Introducing Webhook Events for Alert Changes
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.
es-abstract-is-callable
Advanced tools
A method to determine if an argument is a callable function with a call method
A method to determine if an argument is a callable function with a call method. This method follows ECMAScript's specification for the 'IsCallable ' abstract operation.
Currently, this module only supports the ES2017 (ES8) specification.
This module follows the spec in order of operations, but has no way of checking internal methods. It checks against public methods instead. You may be interested in is-callable as an alternative.
npm install es-abstract-is-callable
var isCallable = require('es-abstract-is-callable')
var a = {
yep: function() {},
nope: "foo"
}
function b() {}
var c = {
call: function() {}
}
console.log(isCallable(a)) // => false
console.log(isCallable(a.yep)) // => true
console.log(isCallable(a.nope)) // => false
console.log(isCallable(b)) // => true
console.log(isCallable(c)) // => true
The abstract operation IsCallable determines if argument, which must be an ECMAScript language value, is a callable function with a [[Call]] internal method.
A Boolean value is returned.
Type: *
The value to check.
FAQs
A method to determine if an argument is a callable function with a call method
We found that es-abstract-is-callable demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.

Product
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.

Security News
ENISA has become a CVE Program Root, giving the EU a central authority for coordinating vulnerability reporting, disclosure, and cross-border response.

Product
Socket now scans OpenVSX extensions, giving teams early detection of risky behaviors, hidden capabilities, and supply chain threats in developer tools.