@bobo-org/utils
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

@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']

Package Sidebar

Install

npm i @bobo-org/utils

Weekly Downloads

4

Version

1.0.3

License

MIT

Unpacked Size

217 kB

Total Files

26

Last publish

Collaborators

  • jackie-bobo