Re-tag array snippets

This commit is contained in:
Isabelle Viktoria Maciohsek
2020-10-18 14:58:09 +03:00
parent 821f442bec
commit c2fdfac6ce
43 changed files with 48 additions and 48 deletions

View File

@ -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`.