dist/systemjs/helper/arrays.js
function flatten(array) {
        return array.reduce(function (a, b) {
            return isArray(b) ? a.concat(flatten(b)) : a.concat(b);
        }, []);
    }
function flatten(array) {
        return array.reduce(function (a, b) {
            return isArray(b) ? a.concat(flatten(b)) : a.concat(b);
        }, []);
    }
function flatten ( array ) { return array . reduce ( function ( a , b ) { return isArray ( b ) ? a . concat ( flatten ( b ) ) : a . concat ( b ) ; } , [ ] ) ; }
Flattens a nested array.
@param {!Array} array the array to flatten
@returns {Array} the new flattened array
Flattens a nested array .