Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F83221963
createForOfIteratorHelper.js
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sun, Sep 15, 20:49
Size
1 KB
Mime Type
text/x-java
Expires
Tue, Sep 17, 20:49 (1 d, 21 h)
Engine
blob
Format
Raw Data
Handle
20807046
Attached To
rOACCT Open Access Compliance Check Tool (OACCT)
createForOfIteratorHelper.js
View Options
import
unsupportedIterableToArray
from
"@babel/runtime/helpers/esm/unsupportedIterableToArray"
;
export
default
function
_createForOfIteratorHelper
(
o
,
allowArrayLike
)
{
var
it
;
if
(
typeof
Symbol
===
"undefined"
||
o
[
Symbol
.
iterator
]
==
null
)
{
if
(
Array
.
isArray
(
o
)
||
(
it
=
unsupportedIterableToArray
(
o
))
||
allowArrayLike
&&
o
&&
typeof
o
.
length
===
"number"
)
{
if
(
it
)
o
=
it
;
var
i
=
0
;
var
F
=
function
F
()
{};
return
{
s
:
F
,
n
:
function
n
()
{
if
(
i
>=
o
.
length
)
return
{
done
:
true
};
return
{
done
:
false
,
value
:
o
[
i
++
]
};
},
e
:
function
e
(
_e
)
{
throw
_e
;
},
f
:
F
};
}
throw
new
TypeError
(
"Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."
);
}
var
normalCompletion
=
true
,
didErr
=
false
,
err
;
return
{
s
:
function
s
()
{
it
=
o
[
Symbol
.
iterator
]();
},
n
:
function
n
()
{
var
step
=
it
.
next
();
normalCompletion
=
step
.
done
;
return
step
;
},
e
:
function
e
(
_e2
)
{
didErr
=
true
;
err
=
_e2
;
},
f
:
function
f
()
{
try
{
if
(
!
normalCompletion
&&
it
[
"return"
]
!=
null
)
it
[
"return"
]();
}
finally
{
if
(
didErr
)
throw
err
;
}
}
};
}
Event Timeline
Log In to Comment