0.1.4 • Published 11 years ago

array-trim v0.1.4

Weekly downloads
5
License
-
Repository
github
Last release
11 years ago

array-trim

Removes undefined, null, and empty strings from arrays.

Installation

npm install array-trim

Usage

In node:

var arrayTrim = require('array-trim');
console.log(array-trim(['s', '', 'd'])); // logs ['s','d']

In the browser, include ./browser/array-trim_web.js in your page. arrayTrim will be available in your page.