Skip to content

legraxieux53/clv-js-utils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

clv-js-utils

This library is a set of utilities to help in carrying out small repetitive tasks

ClvArrayUtils (deprecated - use removeValueFromArray instead)

This is an array utils collection for help development

removeFromArrayByValue (arr: Array , key: string, value: any)

Remove item in array that has specified value. Key may be a path.

removeValueFromArray

Removes the specified value from an array

sumArrayField

Performs the sum of the values ​​of the indexed field

copy

Copy an object

jsType

Determines the real type of the element passed as a parameter (take into account the detection of array and null types)

paginate

Allows you to paginate the data of a table

thousandSeparator

Add thousand separators to a character string while taking into account the decimal part

addMileSeparator

Add thousand separators to a string

dateOperation

Perform operations on the date

elementAddAttributes

Adds attributes to a DOM element

elementAddClass

Add classes to a DOM element

elementRemoveClass

Remove classes from a DOM element

cleanSpace

Remove spaces from a string

removeFirstChar

Remove the first character from a string

removeLastChar

Remove the last character from a string

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published