Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Jan 1, 2025. It is now read-only.

Magic-Academy/js-common-functions

Repository files navigation

js-common-functions

GitHub stars GitHub license Rate on Openbase jsdelivr 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

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  
Morty Proxy This is a proxified and sanitized view of the page, visit original site.