@aequum/utils
v0.27.15
Published
aequum util functions collection
Readme
aequum util functions collection
A collection of utility functions to use as you want.
Functions
data workspace
hidePasswords: Hides password fields in an object, replacing them with asterisks.updateObjectByDotNotation: Updates an object by a dot notation path, creating nested objects if necessary.mergeDeep: Merges two objects deeply, allowing for nested properties to be combined.isClass: Checks if a value is a class (constructor function).isClassInstance: Checks if a value is an instance of a class.
env workspace
load: Loads environment variables from a.envfile, viadotenvpackage.asBoolean: Converts a string to a boolean value, handling common truthy and falsy values.asArray: Converts a string to an array, separated by commas and trimming whitespace.asInteger: Converts a string to an integer, returningundefinedifNaNto use with||operator.
func workspace
isAsync: Checks if a function is asynchronous.
math workspace
naiveRound: Naively rounds a number to a specified number of decimal places.
string workspace
capitalize: Capitalizes the first letter of a string.
