【文件属性】:
文件名称:transform-object-keys:使用预设规则或新修饰符将对象键转换为新键
文件大小:10KB
文件格式:ZIP
更新时间:2021-03-20 03:08:52
JavaScript
转换对象键
安装
$ npm install transform-object-keys
用法
const transformObjectKeys = require ( 'transform-object-keys' ) ;
// Convert an object
transformObjectKeys ( { 'foo-bar' : true } ) ;
//=> {fooBar: true}
// Convert an array of objects
transformObjectKeys ( [ { 'foo-bar' : true } , { 'bar-foo' : false } ] ) ;
//=> [{fooBar: true}, {barFoo: false}]
transformObjectKeys ( { 'foo-bar' : true , nested : {
【文件预览】:
transform-object-keys-master
----.travis.yml(53B)
----index.js(2KB)
----test.js(4KB)
----package.json(1KB)
----index.test-d.ts(620B)
----readme.md(3KB)
----license(1KB)
----.DS_Store(6KB)
----index.d.ts(4KB)
----bench()
--------package.json(51B)
--------fixture.json(1KB)
--------bench.js(350B)
----.gitignore(29B)
----.npmrc(19B)
----.editorconfig(175B)
----.gitattributes(19B)