Utils/Validation

A utility validation object.

Methods

hasValue(value) → {boolean}

Checks value for existence. The following are falsy:

  • null
  • undefined
  • ''
  • []
  • {}
Parameters:
NameTypeDescription
valueany
Since
2.11.0
Returns: 
boolean

isEmptyObject(obj) → {boolean}

Checks whether an object is empty

Parameters:
NameTypeDescription
objObject
Since
2.23.1
Returns: 
boolean