| Current Path : /var/www/html/reddsis/node_modules/underscore/amd/ |
| Current File : /var/www/html/reddsis/node_modules/underscore/amd/flatten.js |
define(['./_flatten'], function (_flatten) {
// Flatten out an array, either recursively (by default), or up to `depth`.
// Passing `true` or `false` as `depth` means `1` or `Infinity`, respectively.
function flatten(array, depth) {
return _flatten(array, depth, false);
}
return flatten;
});