JSPM

clean-array

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 53
  • Score
    100M100P100Q63804F
  • License MIT

Safely remove empty values from an array.

Package Exports

  • clean-array

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (clean-array) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

clean-array

NPM version License Build status

Safely remove empty values from an array.

Installation

npm install clean-array

Usage

var cleanArray = require('clean-array')

var arr = [null, undefined, [], {}, '', true, false, 1, 0, 'string']

cleanArray(arr)
// => [true, false, 1, 0, 'string']