dotty:使用点路径符号访问嵌套对象的属性

时间:2021-05-23 04:02:09
【文件属性】:
文件名称:dotty:使用点路径符号访问嵌套对象的属性
文件大小:336KB
文件格式:ZIP
更新时间:2021-05-23 04:02:09
JavaScript 多蒂 使用点路径符号访问嵌套对象的属性。 概述 Dotty使通过编程访问任意嵌套的对象及其属性变得容易。 安装 这是页面的链接。 npm install dotty 用法 另请参阅和。 var dotty = require ( "dotty" ) ; var object = { a : { b : { x : "y" , } , c : { x : "z" , } , } , } ; console . log ( dotty . exists ( object , "a.b.x" ) ) ; // true console . log ( dotty . exists ( object , [ "a" , "b" , "x" ] ) ) ; // true console . log ( dotty . exi
【文件预览】:
dotty-master
----.jshintrc(104B)
----.gitignore(2KB)
----package.json(583B)
----package-lock.json(5KB)
----LICENSE(1KB)
----.DS_Store(6KB)
----.github()
--------workflows()
----README.md(2KB)
----example.js(2KB)
----lib()
--------index.js(6KB)
----.npmignore(32B)
----docs()
--------docco.css(10KB)
--------public()
--------lib()
----test()
--------get-test.js(2KB)
--------search-test.js(6KB)
--------remove-test.js(2KB)
--------security-test.js(757B)
--------put-test.js(2KB)
--------exists-test.js(2KB)
--------removesearch-test.js(6KB)

网友评论