JSFiddle - React, Tailwind, and code Playground

by Eugene Vilder

JavaScript

// The original array
var a = ["one", "two", "four"];
// splice(position, numberOfItemsToRemove, item)
a.splice(2, 0, "three");

console.log(a);