static flatten(array) {
    return $.map(array, element => {
      if ($.isArray(element)) {
        return Arrays.flatten(element)
      } else {
        return element
      }
    })
  }
/**
   * Flatten array of arrays into an array of elements
   */
Flatten array of arrays into an array of elements
Flatten array of arrays into an array of elements
static flatten(array) {
    return $.map(array, element => {
      if ($.isArray(element)) {
        return Arrays.flatten(element)
      } else {
        return element
      }
    })
  }
static flatten ( array ) { return $ . map ( array , element => { if ( $ . isArray ( element ) ) { return Arrays . flatten ( element ) } else { return element } } ) }
Flatten array of arrays into an array of elements
Flatten array of arrays into an array of elements