1. @wya/utils
wya-utils for js
@wya/utils
Package: @wya/utils
Created by: wya-team
Last modified: Fri, 24 Jun 2022 02:27:45 GMT
Version: 1.6.6
License: MIT
Downloads: 79
Repository: https://github.com/wya-team/wya-utils

Install

npm install @wya/utils
yarn add @wya/utils

@wya/utils

npm changelog

安装

 npm install @wya/utils --save

工具方法

  • Utils

    • def,
    • isObj,
    • hasOwn,
    • preZero,
    • cloneDeep,
    • cloneDeepEasier,
    • createMixins,
    • formatMoney,
    • canvas2file,
    • base622Blob,
    • getWordsLength,
    • sum2array,
    • getUid
    • set
  • Storage, Cookie

    • get
    • set
    • remove
    • setVersion
  • Device

    • androidChrome: false,
    • ipad: false,
    • iphone: false,
    • android: false,
    • ios: false,
    • webView: null,
    • wechat: false,
    • touch: false,
    • todo: xx版本号
  • RegEx

    • set
    • validator
    • num: 以下都为正则
    • integer
    • email
    • date
    • time
    • IDCard
    • price
    • mobile
    • phone
    • postalcode
    • zipcode
    • wechat
    • name
  • URL

    • merge
    • parse
    • get
  • Calc

    • add
    • sub
    • mul
    • div
    • val
    • extend
  • Load

    • css
    • cssCode
    • removeCSSCode
    • js
  • DOM/$

    • prefixStyle
    • composedPath
  • DOM/$(el)

    • on
    • off
    • once
    • addClass
    • removeClass
    • hasClass
    • getStyle
    • setStyle
    • isScroll
    • getScroller
    • contains
    • scrollIntoView
  • Decorator

    • AutoCatch
    • Debounce
    • Throttle
    • Delay
    • Ready
    • Time
    • Deprecated

RELATED POST

10 Must-Know Windows Shortcuts That Will Save You Time

10 Must-Know Windows Shortcuts That Will Save You Time

Arrays vs Linked Lists: Which is Better for Memory Management in Data Structures?

Arrays vs Linked Lists: Which is Better for Memory Management in Data Structures?

Navigating AWS Networking: Essential Hacks for Smooth Operation

Navigating AWS Networking: Essential Hacks for Smooth Operation

Achieving Stunning Visuals with Unity's Global Illumination

Achieving Stunning Visuals with Unity's Global Illumination

Nim's Hidden Gems: Lesser-known Features for Writing Efficient Code

Nim's Hidden Gems: Lesser-known Features for Writing Efficient Code