npm i hd-utils
A handy collection of utilities for modern js developer
import {isFunction, sleep, occurrencesCount, isArrayOfStrings} from 'hd-utils';
console.log(isFunction(()=>{})) //true
console.log(occurrencesCount("foofoofoo", "foofoo")) //1
console.log(isArrayOfStrings(["utils"])) //true
sleep(1000)
List of utility types:
- String utils.
- Object utils.
- Array utils.
- Route utils.
- Number utils.
- Styling utils.
- Validation utils.
- General utils.
- File utils.
- Browser utils.