docs/vendor.js
function flatten$1(list) {
    var result = [];
    var i = 0;
    while (i < list.length) {
        var item = list[i];
        if (Array.isArray(item)) {
            if (item.length > 0) {
                list = item.concat(list.slice(i + 1));
                i = 0;
            }
            else {
                i++;
            }
        }
        else {
            result.push(item);
            i++;
        }
    }
    return result;
}
function flatten$1(list) {
    var result = [];
    var i = 0;
    while (i < list.length) {
        var item = list[i];
        if (Array.isArray(item)) {
            if (item.length > 0) {
                list = item.concat(list.slice(i + 1));
                i = 0;
            }
            else {
                i++;
            }
        }
        else {
            result.push(item);
            i++;
        }
    }
    return result;
}
function flatten$1 ( list ) { var result = [ ] ; var i = 0 ; while ( i < list . length ) { var item = list [ i ] ; if ( Array . isArray ( item ) ) { if ( item . length > 0 ) { list = item . concat ( list . slice ( i + 1 ) ) ; i = 0 ; } else { i ++ ; } } else { result . push ( item ) ; i ++ ; } } return result ; }
Flattens an array in non-recursive way. Input arrays are not modified.
Flattens an array in non - recursive way . Input arrays are not modified .