@lucid-softworks/is-function
v0.1.0
Published
A type guard for callable JavaScript values.
Maintainers
Readme
@lucid-softworks/is-function
Check whether a value is callable and narrow it to UnknownFunction. Functions,
async functions, and classes all have JavaScript's function type.
import { isFunction } from "@lucid-softworks/is-function";
if (isFunction(value)) {
// value is callable, but its arguments remain intentionally unknown.
}