Skip to content

Releases: Simon-He95/lazy-js-utils

v2.0.26

01 Jul 16:53
Compare
Choose a tag to compare

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

27 Jun 11:44
Compare
Choose a tag to compare
v2.0.2

release v2.0.2

v1.0.23

23 Jun 09:39
Compare
Choose a tag to compare
release v1.0.23

v1.0.20

22 Jun 10:52
Compare
Choose a tag to compare
release v1.0.20

v1.0.14

19 Jun 06:32
Compare
Choose a tag to compare

feature: vFetch intercept

v1.0.10

15 Jun 23:41
Compare
Choose a tag to compare

feature: VFetch and interceptError

v1.0.9

15 Jun 04:43
Compare
Choose a tag to compare

Feature: add Type judgement function

v1.0.7

14 Jun 02:23
Compare
Choose a tag to compare
  • 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

13 Jun 12:33
Compare
Choose a tag to compare
release v1.0.4

v0.0.13

13 Jun 11:46
Compare
Choose a tag to compare
v1.0.3

release v1.0.3