๐พfunctionDefinition()
JS โฉ values โฉ custom functions โฉ functionDefinition()
replit๏ผisClass()
(to use it, copy and paste from ๐ module file๏ผ typeName())
// โญ๏ธ content of function definition (string)
function functionDefinition(value) {
// ---------------------------------------------------------------------
// โญ๏ธ will throw a TypeError if value is not a function:
// โ TypeError:
// Function.prototype.toString requires that 'this' be a Function
// ---------------------------------------------------------------------
return Function.prototype.toString.call(value);
}
๐็ฏไพ๏ผ๐ isClass()
Last updated
Was this helpful?