summaryrefslogtreecommitdiff
path: root/tools/eslint/node_modules/escope/node_modules/es6-map/node_modules/es5-ext/array/#/compact.js
blob: d529d5a2beab8ffd072d6da5cb982c5a343c1e35 (plain)
1
2
3
4
5
6
7
8
9
// 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; });
};