1.0.3 • Published 3 years ago
@bobo-org/utils
Licence
MIT
Version
1.0.3
Deps
1
Size
212 kB
Vulns
23
Weekly
0
@bobo-org/utils
js 日常公用常用的工具函数
Install
Using npm:
npm install --save-dev @bobo-org/utils
or using yarn:
yarn add @bobo-org/utils --dev
使用
# esm
import {compact} from '@bobo-org/utils'
const a = compact([1, null, undefined, NaN, '', 'end'])
console.log(a) //[1,'end']
# cjs
const {compact } = require('@bobo-org/utils')
const a = compact([1,null,undefined,NaN,'','end'])
console.log(a) //[1,'end']