Contructor of a specific class. Useful when a constructor must be passed to a generic function as parameter.
Instantiable class.
Execute the schedule every X days
Dictionary of items of the same type. A list of keys can be specified.
Type of the item.
Type of the key, default is string
.
Key of an object.
Object from which to extract the key.
Type of the key, default is string
.
Keys of an object. Value is the same of the original object or different, if specified.
Object from which to extract the keys.
Type of the values of the dictionary. The default is the same of the object.
List of items of the same type.
Type of item.
Execute the schedule on a specific day (number, eg: 5), every X months
Execute the schedule on a specific day of the week (eg: first monday), every X months
Type of value that can be null
too.
Execute the schedule once at a specific DateTime
Keys of an object; all keys are optional. Value is the same of the original object or different, if specified.
Object from which to extract the keys.
Type of the values of the dictionary. The default is the same of the object.
Repeat the schedule execution every X time for an optional amount of time
Any type that contains the toString
method.
Type of value that can be undefined
too.
Execute the schedule at specific weekly days
Enable/disable the debug mode. Default is disabled. Debug mode is used by IFactory to instantiate classes into debug/release mode.
Looks for and returns an item in a list or a default one if item is not found.
List where to look for the item.
Function to find the item.
Item used as default value if item is not found.
the found item or the default one provided.
Formats a string, replacing the placeholders with the given values.
String to format.
List of values to insert in the string.
a formatted string with given values.
Generates a guid.
a guid.
Generates a string of chars taken from the provided chars code range. See https://tc39.es/ecma262/multipage/text-processing.html#sec-string.fromcharcode for more info.
Starting char code index.
Count of chars to use.
a string of chars taken from a chars code range.
Creates a lowercase string of the alphabet.
a lowercase string of the alphabet.
Creates a string of the numbers from 0 to 9.
a string of the numbers from 0 to 9.
Creates a string with the special chars.
a string with the special chars.
Creates a uppercase string of the alphabet.
a uppercase string of the alphabet.
Converts an HEX color to a RgbaColor object.
HEX to convert to RGBA.
RgbaColor.
Checks if arg is a boolean.
Item to check.
true if arg is a boolean.
Checks if arg is a date.
Item to check.
true if arg is a date.
Checks if value is not null and not undefined.
Value to check
true if value is not null and not undefined.
Checks if arg is an email.
Item to check.
true if arg is an email.
Checks if arg is a GUID.
Item to check.
true if arg is a GUID.
Checks if value is null.
Value to check
true if value is null.
Checks if value is null or undefined.
Value to check
true if value is null or undefined.
Checks if arg is a number.
Item to check.
true if arg is a number.
Checks if arg is a string.
Item to check.
true if arg is a string.
Checks if value is undefined.
Value to check
true if value is undefined.
Creates a dictionary from the given items, using the item[key] value as key of the dictionary.
Items to map.
Key of the item to use as dictionary key.
a dictionary where the key is the value of item[key] and the value is the item itself
Checks if a number is integer.
Number to check.
true if number is integer.
Checks if the given object has the given key.
Object to check for the key.
Key to search in the object.
true if the object has the key.
Replaces all the list items with new items. Usefull when the array instance can not change.
const list = [1, 2, 3]
const listRef = list
replaceListItems(list, [4, 5, 6])
// listRef is [4, 5, 6]
Converts a RGB string into an RgbColor object. It works with RGBA colors too. Reference: https://www.geeksforgeeks.org/how-to-convert-rgb-color-string-into-an-object-in-javascript/.
RGB string to convert.
an RgbColor object.
Converts RGBA values to an HEX string. If the alpha value is provided, the HEX result will contain the alpha channel: #rrggbbAA.
Red value (0-255).
Green value (0-255).
Blue value (0-255).
Alpha value (0-1). Default is 1.
an HEX string of the RGBA values.
Rounds a number, keeping a number of decimals equal to the decimals parameter. Reference: https://medium.com/swlh/how-to-round-to-a-certain-number-of-decimal-places-in-javascript-ed74c471c1b8
Number to round.
Number of decimals to keep.
a rounded number with N decimals.
Converts a short HEX to the full version (eg. #f8a > #ff88aa).
Short HEX (eg. #f8a).
a full HEX (eg. #ff88aa).
Generated using TypeDoc
Any type. Useful when:
function isString(arg: Any): boolean
)