Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/afeiship/next-array-trim
Trim array like string.trim for next.
https://github.com/afeiship/next-array-trim
array compact cut filter next trim trimming
Last synced: 8 days ago
JSON representation
Trim array like string.trim for next.
- Host: GitHub
- URL: https://github.com/afeiship/next-array-trim
- Owner: afeiship
- License: mit
- Created: 2020-11-25T03:12:24.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2021-01-09T08:10:31.000Z (almost 4 years ago)
- Last Synced: 2024-12-10T10:24:42.627Z (12 days ago)
- Topics: array, compact, cut, filter, next, trim, trimming
- Language: JavaScript
- Homepage:
- Size: 16.6 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# next-array-trim
> Trim array like string.trim for next.[![version][version-image]][version-url]
[![license][license-image]][license-url]
[![size][size-image]][size-url]
[![download][download-image]][download-url]## installation
```bash
npm install -S @jswork/next-array-trim
```## usage
```js
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](https://github.com/afeiship/next-array-trim/blob/master/LICENSE.txt).[version-image]: https://img.shields.io/npm/v/@jswork/next-array-trim
[version-url]: https://npmjs.org/package/@jswork/next-array-trim[license-image]: https://img.shields.io/npm/l/@jswork/next-array-trim
[license-url]: https://github.com/afeiship/next-array-trim/blob/master/LICENSE.txt[size-image]: https://img.shields.io/bundlephobia/minzip/@jswork/next-array-trim
[size-url]: https://github.com/afeiship/next-array-trim/blob/master/dist/next-array-trim.min.js[download-image]: https://img.shields.io/npm/dm/@jswork/next-array-trim
[download-url]: https://www.npmjs.com/package/@jswork/next-array-trim