golden-path:黄金之路

时间:2021-05-24 15:09:31
【文件属性】:
文件名称:golden-path:黄金之路
文件大小:108KB
文件格式:ZIP
更新时间:2021-05-24 15:09:31
JavaScript 黄金之路 Golden Path是一个功能性(不可变)查询微型解析器,可以使您有机会即时进行对象/数组查询和更新。 该模块具有以下功能: 得到 更新 v 例子! import { get , update , v } from 'golden-path' ; const object = { name : 'islam' } ; get ( 'name' , object ) ; // 'islam' const object = { peoples : [ { id : 1 } ] } ; get ( `peoples.0.id` , object ) ; // 1 const object = { peoples : [ { id : 1 } , { id : 1 } ] } ; get ( `peoples[id=1]` , object ) ; // { id: 1 } -
【文件预览】:
golden-path-master
----.eslintrc.json(588B)
----.gitignore(41B)
----.babelrc(41B)
----package.json(1KB)
----package-lock.json(413KB)
----src()
--------update.spec.js(30KB)
--------get.spec.js(25KB)
--------index.js(1KB)
--------constants.js(149B)
--------resolvePath.js(8KB)
----webpack.config.js(304B)
----.nvmrc(8B)
----.travis.yml(113B)
----LICENSE(1KB)
----README.md(3KB)
----.eslintignore(20B)
----.vscode()
--------launch.json(1KB)
----index.d.ts(229B)

网友评论