Skip to main content

Validation

import { isArray, isBoolean, isDefined } from '@rtorcato/js-common/validation'

Exports

NameSummary
isArrayChecks if a value is an array.
isBooleanChecks if a value is a boolean.
isDefinedChecks if a value is defined (not null or undefined).
isEmailChecks if a string is a valid email address (simple regex).
isNumberChecks if a value is a number (and not NaN).
isObjectChecks if a value is an object (but not null or array).
isStringCheck if a value is a string.
isUrlChecks if a string is a valid URL.