forked from enviPath/enviPy
Current Dev State
This commit is contained in:
13
static/js/ketcher2/node_modules/es5-ext/array/#/compact.js
generated
vendored
Normal file
13
static/js/ketcher2/node_modules/es5-ext/array/#/compact.js
generated
vendored
Normal file
@ -0,0 +1,13 @@
|
||||
// Inspired by: http://documentcloud.github.com/underscore/#compact
|
||||
|
||||
"use strict";
|
||||
|
||||
var isValue = require("../../object/is-value");
|
||||
|
||||
var filter = Array.prototype.filter;
|
||||
|
||||
module.exports = function () {
|
||||
return filter.call(this, function (val) {
|
||||
return isValue(val);
|
||||
});
|
||||
};
|
||||
Reference in New Issue
Block a user