Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
let idpergunta_ = ""
let compactArray = []
for(let i = 0; i < arr.length; i++)
{
let idpergunta_ = arr[i].idpergunta;
if(idpergunta_ != undefined && idpergunta_ != null)
{
if(idpergunta_ == idpergunta)
{
console.log("Achei")
delete arr[i]
// COMO EU DELETE O INDICE DE arr
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.