shared
utils
string
object
is
extension
js
tracking
string
dom
when
selection
position
iframe
event
scroll
console
node
string
project
fs
console
class
Type:Function
Status:stable
Since:1.0.0
Platform:jsnode
@blackbyte.sugar.shared.is
Check if the passed variable (or array of variables) is/are plain variable(s)
Params
- variable*-Mixed|Array
The variable(s) to check
Return
- -Boolean
true if is class(es), false if not
Example
import { isClass } = from '@blackbyte/sugar/is';
isClass({ hello: 'world'}); // => false
const myCoolClass = class Coco{};
isClass(myCoolClass); // => trueTodo
- testsnormal
Author
- Olivier Bosselolivier.bossel@gmail.comhttps://blackbyte.space