Re-tag array snippets
This commit is contained in:
@ -3,7 +3,7 @@ title: intersection
|
||||
tags: array,math,intermediate
|
||||
---
|
||||
|
||||
Returns a list of elements that exist in both arrays.
|
||||
Returns the elements that exist in both arrays.
|
||||
|
||||
- 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