Skip to content

yashwanthkorla/js-utils

Repository files navigation

Javascript Utils.

Util description
useProxy Used to replace undefined with some value when the key is not present in the object
sortObject used to sort out the object by key and value either ascending or descending.
isArrayNotEmpty util to check whether the variable passed is valid array and has some length
isObjectNotEmpty util to check whether the variable passed is valid object and has some properties in it.
removeDuplicatesFromArray util to remove duplicates from array. Array can be of any time either only one data type or it can be array of many data types.
capitalizeString Capitalize the first character of the word or words in a sentence.
joinClassNames Join two classnames based on data types.
getKeyValues Extract multiple values for a particular keys from an object.

Using npm

npm i awesome-js-utils

Usage

using js utils

About

Some of the useful utils for javascript.

Resources

Stars

Watchers

Forks