@webinmove/hakuna-tupu
TypeScript icon, indicating that this package has built-in type declarations

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

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.0.4137latest

Version History

VersionDownloads (Last 7 Days)Published
1.0.4137
1.0.30
1.0.223
1.0.10

Package Sidebar

Install

npm i @webinmove/hakuna-tupu

Weekly Downloads

160

Version

1.0.4

License

ISC

Unpacked Size

14.3 kB

Total Files

13

Last publish

Collaborators

  • satblip
  • oliviercuyp