Files
erik 5b20adee48 All new
alle new
2026-10-01 06:46:51 +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;