New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@webinmove/hakuna-tupu

Package Overview
Dependencies
Maintainers
2
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@webinmove/hakuna-tupu

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

latest
Source
npmnpm
Version
1.0.4
Version published
Maintainers
2
Created
Source

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

Keywords

error

FAQs

Package last updated on 15 Oct 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts