UNPKG

ds-algo-study

Version:

Just experimenting with publishing a package

8 lines (7 loc) 203 B
const isSubset = ( bigSet, smallSet ) => { if ( bigSet.size < smallSet.size ) return false; for ( const item of smallSet ) { if ( !bigSet.has( item ) ) return false; } return true; };