cartodb-4.29/lib/build/affectedFiles/cleanArray.js
2020-06-15 10:58:47 +08:00

12 lines
210 B
JavaScript

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;