模块 @pandapro-project/webtools-utils - v0.1.2

webtools-utils

通用的js工具函数

@pandapro-project:registry=https://npm.pkg.github.com/
//npm.pkg.github.com/:_authToken=GITHUB_TOKEN
 pnpm add @pandapro-project/webtools-utils
npm install @pandapro-project/webtools-utils

Array

at
clampArrayRange
flattenArrayable
last
mergeArrayable
move
partition
range
remove
shuffle
toArray
uniq
uniqueBy

Is

is
isArray
isAsyncFunction
isBoolean
isClient
isDate
isDef
isElement
isEmail
isFunction
isImageDom
isNotNullOrUnDef
isNull
isNullOrUnDef
isNumber
isObject
isPromise
isString
isStringNaN
isUnDef
isWindow
isServer

Math

lerp
remap

Object

clearUndefined
deepMerge
deepMergeWithArray
hasOwnProperty
isKeyOf
objectEntries
objectKeys
objectPick

Object Transform:

objectMap

Other

clamp
enumToArr
getEnumKeyByValue
getTypeName
isDeepEqual
sample
sleep
sums
timestamp
toString

Type

ArgumentsType
Arrayable
Awaitable
Constructor
DeepMerge
DeepRequired
Fn
ItemOf
Nullable
UnionToIntersection