Skip to content

utils.Utils

Christian d'Heureuse edited this page Nov 16, 2026 · 1 revision

tedious-plus / utils/Utils

utils/Utils

General utilities for this package.

Functions

Function Description
assert Throws an exception if the passed condition is not true.
createBareObject Creates a bare object with a null prototype instead of a normal Object prototype.
createUtcDate Creates an UTC date value which can be used for SQL server.
getTypeName Returns the name of the data type of a value, for use in error messages.
sleep Returns a promise that is resolved after the specified time.
toBareObject Converts a normal object into a bare object.
waitWithTimeout Waits until a promise is settled, but at most for the specified time.

Clone this wiki locally