code: function removeOptionalWithoutExamples (arr) {
    return arr.filter(({ optional, example, details }) => {
      return !optional || example !== undefined || details !== undefined;
    });
  }
docs: Remove all optional (trailing) params without examples from an array