-
-
Notifications
You must be signed in to change notification settings - Fork 0
Feature: Type
Аниса edited this page Sep 9, 2022
·
9 revisions
Set of native and custom type helpers to increase your productivity w/o bothering unnecessary JS nuisance!
const bool: state = vKit.isType(
~: data,
string: type
)
const bool: state = vKit.isNull(
~: data
)
const bool: state = vKit.isBool(
~: data
)
const bool: state = vKit.isString(
~: data
)
const bool: state = vKit.isNumber(
~: data
)
const bool: state = vKit.isObject(
~: data,
bool: isArray // (Optional): If enabled, it also verifies whether the object is an array
)
const bool: state = vKit.isArray(
~: data
)
const bool: state = vKit.isClass(
~: data
)
const bool: state = vKit.clone(
~: data,
bool: isRecursive // (Optional): Enabling this recursively clones all nested indexes for objects, classes etc
)