File tree 2 files changed +6
-5
lines changed
2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 4
4
* @param {Iterator } iterator - The input iterator.
5
5
* @returns {{value: any, done?: boolean} }
6
6
*/
7
- export default function _next ( iterator ) {
8
- return iterator . next ( ) ;
9
- }
7
+ const _next = ( iterator ) => iterator . next ( ) ;
8
+ export default _next ;
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ import _next from './_next.js';
11
11
* that the input iterator is exhausted.
12
12
* @returns {any } The next value of the input iterator.
13
13
*/
14
- export default function next ( iterator , dflt = undefined ) {
14
+ const next = ( iterator , dflt = undefined ) => {
15
15
const x = _next ( iterator ) ;
16
16
17
17
if ( x . done ) {
@@ -23,4 +23,6 @@ export default function next(iterator, dflt = undefined) {
23
23
}
24
24
25
25
return x . value ;
26
- }
26
+ } ;
27
+
28
+ export default next ;
You can’t perform that action at this time.
0 commit comments