js-common-functions
TypeScript icon, indicating that this package has built-in type declarations

1.0.9 • Public • Published

js-common-functions

GitHub stars GitHub license Rate on Openbase

NPM

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

Readme

Keywords

none

Package Sidebar

Install

npm i js-common-functions

Weekly Downloads

1

Version

1.0.9

License

MIT

Unpacked Size

298 kB

Total Files

11

Last publish

Collaborators

  • songdaochuanshu