# via npm
$ npm install @cycjimmy/awesome-js-funcs --save
# or via yarn
$ yarn add @cycjimmy/awesome-js-funcs
import { isString } from '@cycjimmy/awesome-js-funcs';
// or better import
import { isString } from '@cycjimmy/awesome-js-funcs/esm/judgeBasic';
// or best import (recommend)
import isString from '@cycjimmy/awesome-js-funcs/esm/judgeBasic/isString';
const isString = require('@cycjimmy/awesome-js-funcs/cjs/judgeBasic/isString.cjs').default;
console.log(isString('string')); // show true
- judgeBasic
isString
isNumber
isObject
isFunction
isArray
isNull
isUndefined
isPromise
isNodeList
isUrl
- judge
isChineseName
isChinesePhoneNumber
isChineseIdentificationNum
- string
trim
firstUpperCase
midlineToCamel
- array
- object
- math
- typeConversion
nodeListToArray
functionToPromise
stringTrueFalseToBoolean
stringToJson
- dom
-
QueryAll
(constructor)
siblingFilter
addStyles
getElementStyle
addPreloadLink
touchActive
touchActiveMockClick
- event
dispatch
debounce
throttle
preventDefault
- media
isAudioPlaying
isVideoPlaying
- handheld
judgeOrientation
isMobile
getBrowserInfo
- function
- regExpression
chineseName
chinesePhoneNumber
chineseIdentificationNum
- designPattern
-
CreateInstance
(constructor)
- seldom