A helper library used in most of my JS/TS projects.
It provides helper functions for common tasks, including an extensive collection of utilities for working with arrays, objects and strings.
npm i biolib
Biolib provides both CommonJS and ESM exports. Type definitions are included.
Depending on your build system import the functions you want to use either from the corresponding package (recommended)
import { isEmptyArray } from "biolib/array";
or from the main bundle
import { isEmptyArray } from "biolib";
The full API documentation can be found here