MCPcopy Create free account
hub / github.com/Distributive-Network/PythonMonkey / isFunction

Function isFunction

tests/js/quint.js:13–16  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

11 if (fn.length !== length) throw new Error(`'${fn}' does not have arity of ${length}`);
12 },
13 isFunction(x)
14 {
15 if (typeof x !== 'function') throw new Error(`'${x}' is not a function`);
16 },
17 name(x, name)
18 {
19 if (x.name !== name) throw new Error(`'${x}' does not have a name of ${name}`);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected