Helpers.Validate

Methods

(static) validate(value, …args) → {boolean}

Validate the data type of a variable.

Parameters:
Name Type Attributes Description
value *

The value to validate.

args * <repeatable>

The data types to use for validate.

Source:
Returns:
  • Returns trueis the value has a valid data type.
Type
boolean