get:快速获取实用程序,用于通过键路径访问嵌套对象中的值

时间:2021-05-28 22:21:34
【文件属性】:
文件名称:get:快速获取实用程序,用于通过键路径访问嵌套对象中的值
文件大小:85KB
文件格式:ZIP
更新时间:2021-05-28 22:21:34
theme utility JavaScript @ds-pack/get 使用键路径访问深层嵌套对象中的值的实用程序。 安装: yarn add @ds-pack/get 用法: import get from '@ds-pack/get' let theme = { colors : { blue : [ 'cadetblue' , 'steelblue' , 'cornflowerblue' ] , } , } get ( theme , 'colors.blue.2' ) // 'cornflowerblue' 工具: 打字稿 巴别塔 笑话
【文件预览】:
get-main
----.gitignore(87B)
----.codesandbox()
--------ci.json(27B)
----package.json(1KB)
----src()
--------__tests__()
--------index.tsx(495B)
----jest.config.js(178B)
----tsconfig.json(555B)
----.github()
--------workflows()
--------labeler.yml(127B)
----.prettierrc.js(144B)
----README.md(376B)
----jest.setup.js(49B)
----babel.config.js(1KB)
----yarn.lock(212KB)

网友评论