Wondering what’s next for npm?Check out our public roadmap! »

    clean-array

    1.0.0 • Public • Published

    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']

    Install

    npm i clean-array

    DownloadsWeekly Downloads

    67

    Version

    1.0.0

    License

    MIT

    Last publish

    Collaborators

    • avatar