retrieve:在指定路径检索属性

时间:2021-06-20 20:56:35
【文件属性】:
文件名称:retrieve:在指定路径检索属性
文件大小:6KB
文件格式:ZIP
更新时间:2021-06-20 20:56:35
JavaScript 取回 在指定路径检索属性。 安装 浏览器: component install ndhoule/retrieve 节点: $ npm install retrieve 应用程序接口 retrieve(str : string, obj : Object) => * 在指定的、以点分隔的路径检索属性。 var person = { name : 'Bob Loblaw' , address : { coordinates : { x : 10 , y : 20 } } } ; retrieve ( 'address.coordinates.y' , person ) ; //=> 20 retrieve.on(delimiter : string, str : string, obj : Object) => * 在指定路径
【文件预览】:
retrieve-master
----circle.yml(73B)
----.eslintrc(180B)
----.jsfmtrc(404B)
----test()
--------index.js(3KB)
----LICENSE.md(1KB)
----HISTORY.md(207B)
----README.md(1KB)
----Makefile(502B)
----component.json(282B)
----.gitignore(55B)
----index.js(2KB)
----package.json(732B)

网友评论