Skip to content

Commit

Permalink
Remove unnecessary comments
Browse files Browse the repository at this point in the history
  • Loading branch information
blakewilson committed May 20, 2024
1 parent 2053193 commit 215c018
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions packages/babel-helpers/src/helpers/iterableToArray.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,6 @@
/* @minVersion 7.0.0-beta.0 */

export default function _iterableToArray<T>(
// Note the '@@iterator' property is not recognized here by TypeScript.
// In fact, it looks like it's used only as the spec name to denote the symbol.
// We may be able to remove.
// https://stackoverflow.com/a/29672061/11711383
// https://262.ecma-international.org/6.0/#sec-well-known-symbols
iter: Iterable<T>,
) {
export default function _iterableToArray<T>(iter: Iterable<T>) {
if (
(typeof Symbol !== "undefined" && iter[Symbol.iterator] != null) ||
(iter as any)["@@iterator"] != null
Expand Down

0 comments on commit 215c018

Please sign in to comment.