JSFiddle - React, Tailwind, and code Playground
JavaScript
var [a, b=-1] = [1, null];
console.log(a, b) //null
var input = [
{ name: "bob", type: "human" },
{ name: "sparkling", type: "water", color: "white" },
{ name: "t-rex", type: "animal" }
]
var output = {
bob: { type: "human" },
sparkling: { type: "water", color: "white" },
"t-rex": { type: "animal" }
};
//a.type
//var otheobj = Object.freeze(output);
//console.log(temp)