Everyday use functions.
Via npm:
$ npm install chuspha
cont chuspha = require('chupsha');
var toBeCapitalized = 'hello world';
// Capitalize String
console.log(chupsha.cap(toBeCapitalized));
const { cap } = require('chupsha');
var toBeCapitalized = 'hello world';
// Capitalize String
console.log(cap(toBeCapitalized));
Remove duplicate values from an array
Remove an object from an array
Sum all the values in the array
Sort an array of objects by a key with string value. Boolean for Asc & Desc
Sort an array of objects by a key with number value. Boolean for Asc & Desc
Checking if key contains a value in array
Return min value from array
Return max value from array
Return first object of array or convert single array to object
Get array length
Generate A Random Hash String
Generate A Random 6 digit token
Generate A Random 4 digit token
Replace a string in string
Convert the string to uppercase
Convert the string to lowercase
Capitalize the first letter of the string
Capitalize the first letter of each word in string
Trim a string
Adding 0 to the start of the string
Split the string into an array
Join array into a string
Remove a character and capitalizing the first letter of the word
Check if string, array or object is empty or null
Check if valid URL
Check if valid Email
Check if Iban is valid