I am trying to remove "_" from all the keys if data object
data = {
_batch: "Batch",
_canDelete: true,
_client: "me",
_extension: "MP4",
_type: "video/mp4"
}
Attempted the following:
for(let k in data ){
data[k].substring(1) = data[k];
}
console.log(data );
Getting the following error:
The left-hand side of an assignment expression must be a variable or a property access.