Static
caseRetrieves the value from an object using a case-insensitive key lookup.
The object to search for the key.
The key to search for in the object.
The value associated with the key, or null if the key is not found.
Static
cleanCleans out the /tmp directory asynchronously.
Static
ddbMarshalls the given item into a DynamoDB format. If the item is an array, it maps over each element and marshalls it recursively. If the item is an object, it marshalls the object using the marshall function with options to remove undefined values and convert class instances to maps. If the item is neither an array nor an object, it converts the item to an attribute.
The item to be marshalled.
Optional
rec: booleanThe marshalled item in DynamoDB format.
Static
ddbRecursively unmarshalls a DynamoDB item by converting it into a plain JavaScript object.
The DynamoDB item to unmarshall.
The unmarshalled JavaScript object.
Static
isChecks if the application is running in a hybridless container.
Static
isChecks if a given value is a valid number.
The value to be checked.
Static
isChecks if a given string is valid.
The string to check.
Static
parseParses a string into an integer and returns null if the string is not a valid number.
Optional
str: stringThe string to parse into an integer.
Static
parseParses a JSON string and returns the resulting object. If the string is empty or cannot be parsed, null is returned.
The JSON string to parse.
Utility class containing various static methods for common operations.