0.0.26 • Published 3 months ago

js-utils-pro v0.0.26

Weekly downloads
-
License
MIT
Repository
github
Last release
3 months ago

js-utils

Add some useful utils to your project. No more 'ctrl C V'

Task completion

How to use

  • npm

    npm install js-utils-pro -D
  • pnpm

    pnpm install js-utils-pro -D
  • yarn

    yarn add js-utils-pro -D

In code, you can

//way1
import {isFns} from 'js-utils-pro'
import {dataFns} from 'js-utils-pro'
isFns.isEmpty([]) //true
isFns.isNumber(222222) // true
const target = { name: 'laoer536', obj: { age: 1111, sex: 1 } }
const deepTarget = dataFns.deepClone(target)
//...
//Those methods are covered by test. They are safe and available.

//way2:
//when version >= 0.0.13 You also can
import {isEmpty,isNumber} from 'js-utils-pro/is'
import {deepClone} from 'js-utils-pro/data'
isEmpty([]) //true
isNumber(222222) // true
const target = { name: 'laoer536', obj: { age: 1111, sex: 1 } }
const deepTarget = deepClone(target)
//...
//Which way do we use? It's up to you. The 'way1' is categorized for easy memory and use. But I prefer to use 'way2', because it use 'import on demand' to get minimize size.

Off Topic

If you discover some bugs when you use, please send some issues or 'pr', thanks a lot. I will continue to maintain this library.

laoer536/js-utils: Add some useful utils to your project. No more 'ctrl C V' (github.com)

0.0.25

3 months ago

0.0.26

3 months ago

0.0.22

8 months ago

0.0.20

10 months ago

0.0.21

10 months ago

0.0.18

12 months ago

0.0.19

12 months ago

0.0.17

1 year ago

0.0.16

1 year ago

0.0.15

1 year ago

0.0.14

1 year ago

0.0.13

1 year ago

0.0.12

1 year ago

0.0.11

1 year ago

0.0.10

1 year ago

0.0.8

1 year ago

0.0.7

1 year ago