From fc4a1e5cddebfad7063ef52be89c79503fca1725 Mon Sep 17 00:00:00 2001 From: Pl4gue Date: Thu, 21 Dec 2017 19:08:21 +0000 Subject: [PATCH] Travis build: 63 --- docs/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/index.html b/docs/index.html index ef88e9600..5ce2df18c 100644 --- a/docs/index.html +++ b/docs/index.html @@ -234,7 +234,7 @@ If the original array can't be split evenly, the final chunk will contain the re

compact

Removes falsey values from an array.

Use Array.filter() to filter out falsey values (false, null, 0, "", undefined, and NaN).

-
const compact = (arr) => arr.filter(Boolean);
+
const compact = arr => arr.filter(Boolean);
 // compact([0, 1, false, 2, '', 3, 'a', 'e'*23, NaN, 's', 34]) -> [ 1, 2, 3, 'a', 's', 34 ]
 

countOccurrences