patrun:JavaScript对象属性的快速模式匹配器

时间:2021-04-28 22:59:26
【文件属性】:
文件名称:patrun:JavaScript对象属性的快速模式匹配器
文件大小:173KB
文件格式:ZIP
更新时间:2021-04-28 22:59:26
HTML 巡逻 JavaScript对象属性的快速模式匹配器。 是否需要根据其属性的子集挑选一个对象? 说您有: { x : 1 , } - > A { x : 1 , y : 1 } - > B { x : 1 , y : 2 } - > C 然后patrun可以为您提供以下结果: { x : 1 } - > A { x : 2 } - > no match { x : 1 , y : 1 } - > B { x : 1 , y : 2 } - > C { x : 2 , y : 2 } - > no match { y : 1 } - > no match 它基本上是通过示例查询属性集。 框架使用此模块来模式化匹配操作。 支持 如果您正在使用此库,如果有任何疑问,请随时在Twitter上与我联系! :) 该模块可在Node.js和浏览器上使用
【文件预览】:
patrun-master
----.gitignore(116B)
----tsconfig.json(363B)
----README.md(11KB)
----test-web()
--------index.html(69B)
--------test-web.js(219KB)
----test()
--------test.html(88B)
--------coverage.html(412KB)
--------bench.js(3KB)
--------matchers.test.js(21KB)
--------readme.js(4KB)
--------patrun.test.js(39KB)
----patrun.ts(11KB)
----LICENSE(1KB)
----.labrc.js(57B)
----package.json(2KB)
----dist()
--------patrun.d.ts(11B)
--------patrun.min.js(10KB)
--------patrun.js(13KB)
--------patrun.js.map(13KB)
--------lib()
----trial()
--------partial.js(667B)
----.eslintignore(49B)
----.travis.yml(269B)
----lib()
--------matchers.ts(13KB)
----.eslintrc.js(269B)
----package-lock.json(183KB)

网友评论