Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9337296
intersection.js
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
446 B
Subscribers
None
intersection.js
View Options
import
{
InternSet
}
from
"internmap"
;
export
default
function
intersection
(
values
,
...
others
)
{
values
=
new
InternSet
(
values
);
others
=
others
.
map
(
set
);
out
:
for
(
const
value
of
values
)
{
for
(
const
other
of
others
)
{
if
(
!
other
.
has
(
value
))
{
values
.
delete
(
value
);
continue
out
;
}
}
}
return
values
;
}
function
set
(
values
)
{
return
values
instanceof
InternSet
?
values
:
new
InternSet
(
values
);
}
File Metadata
Details
Attached
Mime Type
text/x-java
Expires
Jul 4 2025, 7:59 AM (10 w, 1 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3297763
Attached To
rDWAPPS Web applications
Event Timeline
Log In to Comment