install
- npm install --save-dev change-array-map-keys
Usage
nodejs commonjs
const changeArrayMapKeys = require('change-array-map-keys')
var maps = { nickname: 'nickName' }
var arr = [{nickname: 'zzx'}]
var newArr = changeArrayMapKeys(maps, arr)
const changeArrayMapKeys = require('change-array-map-keys')
var maps = { nickname: 'nickName' }
var arr = [{nickname: 'zzx'}]
var newArr = changeArrayMapKeys(maps, arr)
npm i change-array-map-keys
9
1.0.2
ISC