Skip to content

Commit bd85811

Browse files
🚧 progress: Importing existing source from js-itertools.
1 parent 31d4703 commit bd85811

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/iter.js

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
/**
2+
* Returns the iterator for the input iterable.
3+
*
4+
* @param {Iterable} iterable - The input iterable.
5+
* @returns {Iterator}
6+
*/
7+
export default function iter(iterable) {
8+
return iterable[Symbol.iterator]();
9+
}

0 commit comments

Comments
 (0)