Apply new format to snippets and template
This commit is contained in:
@ -5,7 +5,7 @@ tags: array,beginner
|
||||
|
||||
Returns `true` if all the elements in `values` are included in `arr`, `false` otherwise.
|
||||
|
||||
Use `Array.prototype.every()` and `Array.prototype.includes()` to check if all elements of `values` are included in `arr`.
|
||||
- Use `Array.prototype.every()` and `Array.prototype.includes()` to check if all elements of `values` are included in `arr`.
|
||||
|
||||
```js
|
||||
const includesAll = (arr, values) => values.every(v => arr.includes(v));
|
||||
|
||||
Reference in New Issue
Block a user