function hasObjectRest(pattern) {
    for (const elem of (pattern.properties: Array)) {
      if (t.isRestElement(elem)) {
        return true;
      }