0.1.31 • Published 4 years ago

bqroster-utils v0.1.31

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

Install

npm install bqroster-utils --save

Usage

import { isArray, isEmpty } from 'bqr-utils';

if (isArray(anyElement)) { // code here }
else if (!isEmpty(anyElement)) { // code here }
import Utils from 'bqr-utils';

if (Utils.isArray(anyElement)) { // code here }
else if (!Utils.isEmpty(anyElement)) { // code here }

List of Utils functions

isNull
__True__, if value is different from `null`, `undefined` and `NaN`
isArray
__True__, if value is an Array
isEmpty
__True__, if value does not have content regardless of the value type String, Array or Object('' or [], {})
isFunction
__True__, if value is a function, regardless function anonymous, named or arrow function.
isObject
__True__, if value is an object, regardless is empty or with keys.
uuid
Generates a basic uuid version 4
uuidXS
Generates an 8 digits random value
isDeleteBackward
__true__, if InputEvent is `Delete Backward` input
capitalize
Uppercase the first char of the passed value

Author

Jose Burgos jose@bqroster.com