Public API
Function
Helper
Help to determine the value type.
// Helper.
import {
recognizeValue, // From the `5.0.0` version
typeOf,
} from '@angular-package/type';is
isFunctions with the prefix is determine whether the value of any type is of the specified type.
// `is` prefix functions.
import {
isArray,
isBigInt,
isBoolean,
isBooleanObject,
isBooleanType,
isClass,
isDate, // From the 4.2.0 version.
isDefined,
isFalse, // From the 4.2.0 version.
isFunction,
isInstance,
isKey,
isNull,
isNumber,
isNumberBetween, // From the 4.2.0 version.
isNumberObject,
isNumberType,
isObject,
isObjectKey,
isObjectKeyIn,
isObjectKeys,
isObjectKeysIn, // From the 5.0.0 version
isObjectSomeKeys, // From the 5.0.0 version
isParam,
isPrimitive,
isRegExp, // From the 4.2.0 version.
isString,
isStringIncludes, // From the 5.0.0 version
isStringIncludesSome, // From the 5.0.0 version
isStringLength, // From the 4.2.0 version.
isStringLengthBetween, // From the 5.0.0 version
isStringObject,
isStringType,
isSymbol,
isTrue, // From the 4.2.0 version.
isType,
isUndefined,
} from '@angular-package/type';isNot
isNotFunctions with the prefix isNot determine whether the value of any type is not of a specified type.
are
areFunctions with the prefix are determine whether the values of any type are of the specified type.
guard
guardFunctions with the prefix guard constraint the type and determine the value is of the specified type.
Object
The objects represent the check and guard functions.
Interface
Type
Last updated
Was this helpful?