Created
May 21, 2019 15:51
-
-
Save mvnp/93eb7496e44fc3144bb0bba97548363e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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