@cdmx/wappler_ac_type_checker
v0.0.3
Published
App Connect formatter for Data Type Checking
Downloads
56
Maintainers
Readme
Developed and Maintained by: Roney Dsilva
Type Checker Formatter for App Connect
The Type Checker
module provides a set of type checking functions for various data types. Each function checks the type of input data and returns a boolean value indicating whether the input matches the expected type.
isNumber
- Description: Checks if the input is a number.
- Usage: Use this function to determine if a given value is a numeric data type, such as an integer or a floating-point number.
isUUID
- Description: Checks if the input is a valid UUID (Universally Unique Identifier).
- Usage: This function can be used to verify if a string conforms to the UUID format.
isBool
- Description: Checks if the input is a boolean value (
true
orfalse
). - Usage: Use this function to determine if a given value represents a boolean data type.
isString
- Description: Checks if the input is a string.
- Usage: This function can be used to determine if a given value is of string data type, which includes text and characters.
isArray
- Description: Checks if the input is an array.
- Usage: Use this function to determine if a given value is an array data type, which is a collection of elements.
isObject
- Description: Checks if the input is an object.
- Usage: This function verifies if the input is an object data type, which can hold key-value pairs.
isFunction
- Description: Checks if the input is a function.
- Usage: This function determines if a given value is a function data type, typically used for invoking actions or methods.
isNull
- Description: Checks if the input is
null
. - Usage: Use this function to check if a value is explicitly
null
.
isUndefined
- Description: Checks if the input is
undefined
. - Usage: This function helps identify if a value has not been defined.
isDate
- Description: Checks if the input is a JavaScript
Date
object. - Usage: Use this function to verify if a value is a date.
isRegExp
- Description: Checks if the input is a regular expression (
RegExp
) object. - Usage: This function determines if a given value is a regular expression, often used for pattern matching.
isNaN
- Description: Checks if the input is
NaN
(Not-a-Number). - Usage: Use this function to detect if a value represents the special JavaScript value
NaN
.