This is a library [under development] for making a developer's life easier that includes all the common utility functions of frequent use.
npm i usuals
import * as usuals from "usuals";
isObjectEmpty(inputObject)
Checks if a JavaScript Object is empty (inclusive of null
and undefined
)
const inputObject1 = {};
const inputObject2 = { foo: "bar" };
// Returns true
usuals.objectFunctions.isObjectEmpty(inputObject1);
// Returns false
usuals.objectFunctions.isObjectEmpty(inputObject2);
generateLowerCaseString(10)
Returns a lowercase string of specified length
// Returns a value with 14 random characters. [Example - vjjdnmhjlgdgwc]
const str = usuals.stringFunctions.generateLowerCaseString(14);
- Currently we only have 2 contributors to this project.
- Do write to [email protected] should you want to be a part of this.
- Any bugs/issues reported would help improve the "usuals" library.
- Please do if you stumble upon them. You have our gratitude!
To report bugs and issues please use the GitHub issue reporting tool: https://github.com/reddy-hari/usuals/issues.
Pull Requests are highly encouraged and appreciated.
Please ⭐ the repo if you like the project.