I have below array which is present inside an object and need to update only index 0 from "ABC" to "XYZ".
const input = {
arr: ["ABC", "FGD", "PQR", "TYS"]
};
const desiredOutput = {
arr: ["XYZ", "FGD", "PQR", "TYS"]
}
I have below array which is present inside an object and need to update only index 0 from "ABC" to "XYZ".
const input = {
arr: ["ABC", "FGD", "PQR", "TYS"]
};
const desiredOutput = {
arr: ["XYZ", "FGD", "PQR", "TYS"]
}