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

  1. variable*-Mixed|Array

    The variable(s) to check

Return

  1. -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); // => true

Todo

  • testsnormal