You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Science Spot edited this page Oct 19, 2020
·
1 revision
Calculation Methods
const{ union, intersect, subtract }=require('node-set-theory');union([1,2],[3,2]);// Will return [1, 2, 3]intersect([1,2].[3,2]);// Will return [2]subtract([1,2],[3,2]);// Will return [1]subtract([3,2],[1,2]);// Will return [3]