Snippet format update

To match the starter (for the migration)
This commit is contained in:
Angelos Chalaris
2019-08-13 10:29:12 +03:00
parent a5164f392a
commit 611729214a
381 changed files with 1951 additions and 1989 deletions

View File

@ -1,4 +1,7 @@
### any
---
title: any
tags: array,function,beginner
---
Returns `true` if the provided predicate function returns `true` for at least one element in a collection, `false` otherwise.
@ -12,4 +15,4 @@ const any = (arr, fn = Boolean) => arr.some(fn);
```js
any([0, 1, 2, 0], x => x >= 2); // true
any([0, 0, 1, 0]); // true
```
```