src/index.js
function hasRest(pattern) {
    for (let elem of pattern.elements) {
      if (isRestElement(t, elem)) {
        return true
      }
    }
    return false
  }
function hasRest(pattern) {
    for (let elem of pattern.elements) {
      if (isRestElement(t, elem)) {
        return true
      }
    }
    return false
  }
function hasRest ( pattern ) { for ( let elem of pattern . elements ) { if ( isRestElement ( t , elem ) ) { return true } } return false }
Test if an ArrayPattern's elements contain any RestElements.
Test if an ArrayPattern s elements contain any RestElements .