@webinmove/hakuna-tupu

1.0.2 • Public • Published

HakunaTupu

Description

Hakuna Tupu means "no empty" in Swahili.

Util to remove empty string, undefined, null and empty arrays in nested objects and arrays

Here is an exemple:

const hakunaTupu = new HakunaTupu({
  removeEmptyArrays: true,
  removeEmptyObjects: true,
  removeEmptyStrings: true,
  removeUndefined: true,
  removeNull: true
});

const result = hakunaTupu.removeEmpty(objectToEmpty);

Readme

Keywords

Package Sidebar

Install

npm i @webinmove/hakuna-tupu

Weekly Downloads

45

Version

1.0.2

License

ISC

Unpacked Size

13.8 kB

Total Files

12

Last publish

Collaborators

  • satblip
  • oliviercuyp