1.0.4 • Published 10 months ago

@webinmove/hakuna-tupu v1.0.4

Weekly downloads
-
License
ISC
Repository
github
Last release
10 months ago

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);
1.0.4

10 months ago

1.0.3

10 months ago

1.0.2

3 years ago

1.0.1

4 years ago