Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F103210506
unsupportedIterableToArray.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
Fri, Feb 28, 05:52
Size
517 B
Mime Type
text/x-java
Expires
Sun, Mar 2, 05:52 (2 d)
Engine
blob
Format
Raw Data
Handle
24515647
Attached To
rOACCT Open Access Compliance Check Tool (OACCT)
unsupportedIterableToArray.js
View Options
import
arrayLikeToArray
from
"@babel/runtime/helpers/esm/arrayLikeToArray"
;
export
default
function
_unsupportedIterableToArray
(
o
,
minLen
)
{
if
(
!
o
)
return
;
if
(
typeof
o
===
"string"
)
return
arrayLikeToArray
(
o
,
minLen
);
var
n
=
Object
.
prototype
.
toString
.
call
(
o
).
slice
(
8
,
-
1
);
if
(
n
===
"Object"
&&
o
.
constructor
)
n
=
o
.
constructor
.
name
;
if
(
n
===
"Map"
||
n
===
"Set"
)
return
Array
.
from
(
o
);
if
(
n
===
"Arguments"
||
/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/
.
test
(
n
))
return
arrayLikeToArray
(
o
,
minLen
);
}
Event Timeline
Log In to Comment