get-wild:从支持通配符的对象中提取嵌套属性

时间:2021-04-06 09:48:54
【文件属性】:
文件名称:get-wild:从支持通配符的对象中提取嵌套属性
文件大小:115KB
文件格式:ZIP
更新时间:2021-04-06 09:48:54
json wildcards extract glob selector 疯狂 姓名 get-wild-从支持通配符的对象中提取嵌套属性 特征 可配置的通配符支持,例如"foo.*.bar" 支持负数组索引,例如"foo[-1].bar" 可插拔路径解析器 没有依赖 缩小〜750 B +压缩 用于函数式编程的咖喱(最后数据)版本 全类型(TypeScript) CDN构建(UMD) , 安装 $ npm install get-wild 概要 import { get } from 'get-wild' const obj = { foo : { bar : { baz : 'quux' } } } get ( obj , 'foo.bar.baz' ) // "quux" get ( obj , 'foo.fizz.buzz' ) // undefined get ( obj , 'foo.fizz
【文件预览】:
get-wild-master
----rollup.config.js(1KB)
----package.json(2KB)
----.github()
--------workflows()
----test()
--------index.js(15KB)
--------fp.js(7KB)
--------snapshots()
--------fixtures()
--------parser()
----resources()
--------build.js(670B)
--------generate-tree.js(704B)
--------repl.js(493B)
----src()
--------parser.ts(1KB)
--------fp.ts(1KB)
--------getter.ts(3KB)
--------index.ts(177B)
----tsconfig.json(932B)
----LICENSE.md(1KB)
----.gitignore(1KB)
----CHANGELOG.md(2KB)
----README.md(19KB)
----yarn.lock(221KB)
----.editorconfig(324B)
----babel.config.js(47B)

网友评论