Skip to main content

common-utils package

Functions

FunctionDescription
getErrorCode(err)Returns code of an error-like object.
isRecord(value)Returns true when type of value is object and is not null, undefined or an array.
toArray(input)Transforms input into an array, or leave it as-is if input is already an array.