Skip to content

matthewkastor/array-trim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

array-trim

JavaScript module for trimming empty values from an array. Empty values are '', undefined, null, [], {}, and objects with no enumerable properties.

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.

About

JavaScript module for trimming empty values from an array. Empty values are '', undefined, null, [], {}, and objects with no enumerable properties.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published