Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@slck/utils

chandru415186MIT4.10.0TypeScript support: included

utils library - Utility functions for common development.

utils, functions, typescript, javascript, angular, node, react, isNullOrUndefined, isDate, isObject, isEmpty, toCamelCaseKeys, objectDifferenceByProps, compareObjectArraysWithTypeSafe, shiftToFristWith, checkObjectPropValueExistsInCollection, convertMinutesToTimeText, firstLetterFromString, constructTreeRecursively, EndpointConfig, trimObjectValues, hasValidDateFn, generateRandomColorFn, extractCommonAndDifferentValues, isAnyRecordWithEmptyValues, isDateLike, hasDuplicateByKeys, generateMultiplesInRange, selectMatchingObjectsByKeys, toReadableTitle

readme

utils

utils library - Utility functions for common development.

Installation

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

Types

- GenericObjectType
- ErrorType
- EndpointConfig