utils
utils library - Utility functions for common development.
Installation
``
bash
npm i @slck/utils --save
``
Methods
- isNullOrUndefined
- isDate
- isObject
- isEmpty
- isEmptyInDepth
- hasValidLength
- isNullOrUndefinedEmpty
- leadZeroForMonthOrDay
- daysTimeFromSeconds
- objectNonShadowCopy
- remainingDaysHoursFormTwoDates
- toCamelCaseKeys
- objectDifferenceByProps
- genericObjectTypeFn
- compareObjectArraysWithTypeSafe
- shiftToFristWith
- checkObjectPropValueExistsInCollection
- convertMinutesToTimeText
- firstLetterFromString
- constructTreeRecursively
- trimObjectValues
- hasValidDateFn
- generateRandomColorFn
- extractCommonAndDifferentValues
- isAnyRecordWithEmptyValues
- isDateLike
- hasDuplicateByKeys
- generateMultiplesInRange
- selectMatchingObjectsByKeys
- toReadableTitle
- parseSqlCustomExpressionTokens
- isNumeric
Types
- GenericObjectType
- ErrorType
- EndpointConfig
- SQLCustomToken