odash-xcvb
v1.0.0
Published
Reuseable functions and utilities.
Downloads
9
Maintainers
Readme
ODASH
Description
A collection of utility functions for JavaScript development. Simplify your coding tasks and improve code quality with this set of essential utility functions designed to tackle common challenges.
Key Features
- isEmpty(value): Check for empty or meaningless content in values.
- isUndefined(value): Determine if a value is
undefined
. - sumBy(collection, iteratee): Calculate the sum of numeric properties in a collection.
- delay(ms): Introduce time delays using Promises.
- validatePassword(password): Validate passwords based on specified criteria.
- concatStrings(array, separator, key): Concatenate strings or object properties with ease.
- filterArray(array, value, key): Efficiently filter elements from arrays.
- replaceElement(array, key, value, newData): Replace elements in arrays.
- concatArrays(firstChunk, secondChunk): Concatenate arrays with flexibility.
- getDropdownOptions(object, value): Generate dropdown options from key-value pairs.
- positiveNumberCheck(value): Verify if a value is a positive number.
- getDates(noOfDays): Calculate start and end dates based on a given number of days.
- validateObject(object): Validate the non-emptiness of all object fields.
- sumOfArray(arr, key): Calculate the sum of fields in arrays of objects.
- dateStr(date): Format Date objects as strings.
- And more...
Installation
Install this package using npm:
npm install odash