cartodb/lib/build/affectedFiles/cleanArray.js

12 lines
210 B
JavaScript
Raw Normal View History

2020-06-15 10:58:47 +08:00
function cleanArray (actual) {
var newArray = [];
for (var i = 0; i < actual.length; i++) {
if (actual[i]) {
newArray.push(actual[i]);
}
}
return newArray;
}
module.exports = cleanArray;