Published unlisted
Edited
Apr 26, 2020
Insert cell
Insert cell
Insert cell
Insert cell
sub_outersection = sub_array_1.filter(element => sub_array_2.excludes(element))
Insert cell
Insert cell
excluded1 = sub_array_1.filter(element => !sub_array_2.includes(element))
Insert cell
excluded2 = sub_array_2.filter(element => !sub_array_1.includes(element))
Insert cell
total_excluded = excluded1.concat(excluded2)
Insert cell
Insert cell
md`
---
`
Insert cell
sub_intersection = sub_array_2.filter(element => sub_array_1.includes(element))
Insert cell
sub_array_2.filter(element => !sub_array_1.includes(element))
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
table_intersection = unique_group1.filter(element => unique_group2.indexOf(element) !== -1)
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more