Skip to content

@technobuddha > library > Object

Conversion

NameTypeDescription
BooleanOptionsTypeOptions for the toBoolean function
toArrayFunctionEnsures that the provided value is returned as an array.
toBooleanFunctionConvert a string to a boolean value
toDateFunctionConverts an unknown entity to a Date object.
toErrorFunctionConvert the entity to an Error object.
toIntegerFunctionConvert an entity to a integer number.
toNumberFunctionConvert an entity to a number.
toPrimitiveFunctionConvert an object into its primitive (string, number, etc.) value
toStringFunctionConverts an unknown value to its string representation.