(to use it, copy and paste from ๐ module file๏ผ typeName())
// โญ๏ธ check if value is a "class"
// - require:
// โข isFunction()
// โข functionDefinition()
function isClass(value) {
return (
// `value` is a function
isFunction(value) &&
// `value` is a "class" definition
functionDefinition(value).startsWith("class")
);
}