📅  最后修改于: 2022-03-11 15:04:10.558000             🧑  作者: Mango
let newArray = oldArray.map(function (item) {
if()
return false; // This will skip current element
else
// logic for mapping acceptable elements
});