Function addDataKeys

  • Joins additional data to the provided data set

    import { remapData } from 'helping_hand'
    const remappedData = remapData(...);

    Parameters

    • data: {}[]
    • additionalData: {}

      Returns {}[]

      Example

      This will remap the name key to firstname

      const data = [
      {
      name: 'Jason'
      }
      ]
      const dataMap = {
      firstname: 'name'
      }

      const remappedData = remapData(data, dataMap);