Perguntas com a marcação «not-exists»

247
Array.push () se não existir?

Como posso inserir uma matriz se nenhum valor existe? Aqui está minha matriz: [ { name: "tom", text: "tasty" }, { name: "tom", text: "tasty" }, { name: "tom", text: "tasty" }, { name: "tom", text: "tasty" }, { name: "tom", text: "tasty" } ] Se eu tentasse entrar novamente no array com um...