source:
frontend/node_modules/underscore/cjs/compact.js
| Last change on this file was 9af201e, checked in by , 12 days ago | |
|---|---|
|
|
| File size: 170 bytes | |
| Line | |
|---|---|
| 1 | var filter = require('./filter.js'); |
| 2 | |
| 3 | // Trim out all falsy values from an array. |
| 4 | function compact(array) { |
| 5 | return filter(array, Boolean); |
| 6 | } |
| 7 | |
| 8 | module.exports = compact; |
Note:
See TracBrowser
for help on using the repository browser.
