Releases: Simon-He95/lazy-js-utils
Releases · Simon-He95/lazy-js-utils
v2.0.26
Feature: add new common functions like animationFrameWrapper 、idleCallbackWrapper and so on
Fix: animationFrameWrapper 、idleCallbackWrapper stop not work
perf: DotImageCanvas and DotTextCanvas with idleCallbackWrapper splice to rendering
v2.02
v2.0.2 release v2.0.2
v1.0.23
release v1.0.23
v1.0.20
release v1.0.20
v1.0.14
feature: vFetch intercept
v1.0.10
feature: VFetch and interceptError
v1.0.9
Feature: add Type judgement function
v1.0.7
- deepCompare // 比较2个对象的差异返回不同的属性和具体不同的值
- deepMerge // Object.assign的深度拷贝版本,返回合并后传入的第一个对象
- asyncPool // limit:控制异步并发执行的数量,tasks:异步任务数组
- quickFind // quickFind(array: any[], key: any),返回一个新的实例,在实例中find方法可以根据key查找对应的项,查找效率O(1),set更新或新增项,delete删除项效率都是O(1)
- quickFilter // quickFilter(array: any[], key: string | number | Array<string | number>, value: string | number | RegExp), 快速模糊查找key名字的项,支持正则匹配
- deepClone // 简洁的深拷贝
- curry // 函数柯里化
- memorizeFn // 根据参数返回一个有缓存的函数
- debounce // 函数防抖
- throttle // 函数节流
- traverse // 遍历对象或数组,快速从options中得到指定的属性值,traverse(arr, {
'family.name'(target: any, index: number) {
console.log(target, index,)
}
}) - transformKey // 将对象的key转换成需要的key,transformKey(obj, {
'family.name': 'familyName',
'family.age': 'familyAge'
})
v1.0.4
release v1.0.4
v0.0.13
v1.0.3 release v1.0.3