Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/afeiship/next-filter-nil
Filter null/undefined value.
https://github.com/afeiship/next-filter-nil
filter next nil null undefined
Last synced: 20 days ago
JSON representation
Filter null/undefined value.
- Host: GitHub
- URL: https://github.com/afeiship/next-filter-nil
- Owner: afeiship
- License: mit
- Created: 2019-09-21T11:52:18.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-11-22T09:30:18.000Z (about 4 years ago)
- Last Synced: 2024-10-26T05:04:17.728Z (2 months ago)
- Topics: filter, next, nil, null, undefined
- Language: JavaScript
- Size: 20.5 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-filter-nil
> Filter null/undefined value.[![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-filter-nil
```## usage
```js
import '@jswork/next-filter-nil';nx.filterNil({
left: null,
right: 0,
title: {
text: '堆叠区域图'
},
tooltip: {
trigger: 'axis',
axisPointer: {
type: 'cross',
label: {
left: null,
right: 10,
backgroundColor: '#6a7985'
}
}
},
legend: {
data: ['邮件营销', '联盟广告', '视频广告', '直接访问', '搜索引擎']
},
toolbox: {
feature: {
saveAsImage: {
target: null
}
}
}
},null);// ================= result =================
{
right: 0,
title: {
text: '堆叠区域图'
},
tooltip: {
trigger: 'axis',
axisPointer: {
type: 'cross',
label: {
right: 10,
backgroundColor: '#6a7985'
}
}
},
legend: {
data: ['邮件营销', '联盟广告', '视频广告', '直接访问', '搜索引擎']
},
toolbox: {
feature: {
saveAsImage: { }
}
}
}
```## license
Code released under [the MIT license](https://github.com/afeiship/next-filter-nil/blob/master/LICENSE.txt).[version-image]: https://img.shields.io/npm/v/@jswork/next-filter-nil
[version-url]: https://npmjs.org/package/@jswork/next-filter-nil[license-image]: https://img.shields.io/npm/l/@jswork/next-filter-nil
[license-url]: https://github.com/afeiship/next-filter-nil/blob/master/LICENSE.txt[size-image]: https://img.shields.io/bundlephobia/minzip/@jswork/next-filter-nil
[size-url]: https://github.com/afeiship/next-filter-nil/blob/master/dist/next-filter-nil.min.js[download-image]: https://img.shields.io/npm/dm/@jswork/next-filter-nil
[download-url]: https://www.npmjs.com/package/@jswork/next-filter-nil