mirror of
https://github.com/mmahdium/portfolio.git
synced 2026-08-16 21:14:31 +03:30
Initial commit (secrets removed)
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
// return true if all elements of arr1 are in arr2
|
||||
export const isSubset = (arr1: any[], arr2: any[]): boolean => {
|
||||
let set2 = new Set(arr2)
|
||||
return arr1.every((i) => set2.has(i))
|
||||
}
|
||||
Reference in New Issue
Block a user