JSFiddle - React, Tailwind, and code Playground

by echonax

JavaScript

var topRecords = [ {movement: "squat"}, {movement: "ohp"}];
var topRecordLabels = [];

topRecordLabels = topRecords.map((v)=>v.movement);

console.log(topRecordLabels);