Update snippet descriptions
This commit is contained in:
@ -1,9 +1,9 @@
|
||||
---
|
||||
title: intersection
|
||||
tags: array,math,intermediate
|
||||
tags: array,intermediate
|
||||
---
|
||||
|
||||
Returns the elements that exist in both arrays.
|
||||
Returns the elements that exist in both arrays, filtering duplicate values.
|
||||
|
||||
- Create a `Set` from `b`, then use `Array.prototype.filter()` on `a` to only keep values contained in `b`.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user