setup-maven-cached/node_modules/underscore/cjs/compact.js
2022-06-28 10:39:30 +02:00

9 lines
170 B
JavaScript

var filter = require('./filter.js');
// Trim out all falsy values from an array.
function compact(array) {
return filter(array, Boolean);
}
module.exports = compact;