]> git.r.bdr.sh - rbdr/dotfiles/blob - atom/packages/vim-mode/node_modules/grim/node_modules/emissary/node_modules/es6-weak-map/node_modules/es5-ext/array/#/compact.js
d529d5a2beab8ffd072d6da5cb982c5a343c1e35
[rbdr/dotfiles] / atom / packages / vim-mode / node_modules / grim / node_modules / emissary / node_modules / es6-weak-map / node_modules / es5-ext / array / # / compact.js
1 // Inspired by: http://documentcloud.github.com/underscore/#compact
2
3 'use strict';
4
5 var filter = Array.prototype.filter;
6
7 module.exports = function () {
8 return filter.call(this, function (val) { return val != null; });
9 };