mirror of
https://github.com/hanzoai/es5-ext.git
synced 2026-09-24 16:58:43 +00:00
12 lines
224 B
JavaScript
12 lines
224 B
JavaScript
// Inspired by: http://documentcloud.github.com/underscore/#compact
|
|
|
|
"use strict";
|
|
|
|
var filter = Array.prototype.filter;
|
|
|
|
module.exports = function () {
|
|
return filter.call(this, function (val) {
|
|
return val != null;
|
|
});
|
|
};
|