Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F72067058
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, Jul 14, 12:52
Size
1 KB
Mime Type
text/x-java
Expires
Tue, Jul 16, 12:52 (1 d, 21 h)
Engine
blob
Format
Raw Data
Handle
19024589
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