JSFiddle - React, Tailwind, and code Playground

by San-Kai Liao

JavaScript

let result = [];
result['A'] = {x:1, y:2};
result['B'] = {x:2, y:5};

delete result['A'];

console.log(result);