js-common-functions
v1.0.9
Published
[![GitHub stars](https://img.shields.io/github/stars/Magic-Academy/js-common-functions)](https://github.com/Magic-Academy/js-common-functions/stargazers) [![GitHub license](https://img.shields.io/github/license/Magic-Academy/js-common-functions)](https://
Downloads
19
Readme
js-common-functions
Installation
npm install js-common-functions --save
DEMO
import {deepClone} from "js-common-functions";
console.log(deepClone({a: 1, b: {c: 2}})); // {a: 1, b: {c: 2}}
Some functions
- deepClone
- shallowClone
- getObjectLength
- timeFormat
- ajax
- isContain
- unique
- randomColor
- sortBy
- randomCode
- checkPassword
- checkEmail
- checkPhone
- checkIdCard
- checkBankCard
- checkPhoneSystem
- getPhoneAttribution
- fetch
- isPC
- trim
- filterHTML
- isFloat
- isInteger
- stringifyQueryString
- getScrollTop
- windowResize
If in doubt, please submitissues :)
More detailed documentation is here