Skip to content

afeiship/next-array-trim

Repository files navigation

next-array-trim

Trim array like string.trim for next.

version license size download

installation

npm install -S @jswork/next-array-trim

usage

import '@jswork/next-array-trim';

const arr = [undefined, undefined, undefined, 'a', 'b', 'c', undefined];
nx.arrayTrim(arr, undefined);    // ['a','b','c']

license

Code released under the MIT license.