JSFiddle - React, Tailwind, and code Playground

by Dmitri Ganenco

JavaScript

const arr = {
  "History": {
    "0": {
      "year": 2018,
      "value": 22.659
    },
    "1": {
      "year": 2017,
      "value": 25.11
    },
    "2": {
      "year": 2016,
      "value": 20.82
    },
    "3": {
      "year": 2015,
      "value": 18.49
    }
  }
};

const res = Object.keys(arr.History).map(key => arr.History[key]);

console.log(res);