Remap an arrays object keys
import { remapData } from 'helping_hand'const remappedData = remapData(...); Copy
import { remapData } from 'helping_hand'const remappedData = remapData(...);
This will remap the name key to firstname
const data = [ { name: 'Jason' }]const dataMap = { firstname: 'name'}const remappedData = remapData(data, dataMap); Copy
const data = [ { name: 'Jason' }]const dataMap = { firstname: 'name'}const remappedData = remapData(data, dataMap);
Remap an arrays object keys