文件名称:visit.js:为了更容易访问嵌套属性
文件大小:3KB
文件格式:ZIP
更新时间:2024-06-02 09:22:16
JavaScript
visit.js 注意:visit.js只是一个实验,因为 ,但Firefox和最新的IE除外。 如果您厌倦了这些: // To get `name`, but you do not know whether `employees` and `employees[0]` exist or not const name = ( company . employees && company . employees [ 0 ] && company . employees [ 0 ] . name ) ; // To set `name`, but you do not know whether `employees` and `employees[0]` exist or not if ( company . employees && company . employees [ 0 ]
【文件预览】:
visit.js-master
----LICENSE(1KB)
----README.md(3KB)
----index.js(1KB)
----package.json(500B)