array-flatten.js
function flattenDown (array, result) {
  for (var i = 0; i < array.length; i++) {
    var value = array[i]

    if (Array.isArray(value)) {
      flattenDown(value, result)
    } else {
      result.push(value)
    }
  }

  return result
}
function flattenDown (array, result) {
  for (var i = 0; i < array.length; i++) {
    var value = array[i]

    if (Array.isArray(value)) {
      flattenDown(value, result)
    } else {
      result.push(value)
    }
  }

  return result
}
function flattenDown ( array , result ) { for ( var i = 0 ; i < array . length ; i ++ ) { var value = array [ i ] if ( Array . isArray ( value ) ) { flattenDown ( value , result ) } else { result . push ( value ) } } return result }
Flatten an array indefinitely.

@param  {Array} array
@param  {Array} result
@return {Array}
Flatten an array indefinitely .