From c98c5a5bcc8a28bdc7c1c8854821ad3edf96e03d Mon Sep 17 00:00:00 2001 From: Rohit Tanwar <31792358+kriadmin@users.noreply.github.com> Date: Sun, 21 Jan 2018 12:21:22 +0530 Subject: [PATCH] Update zipWith.md --- snippets/zipWith.md | 1 + 1 file changed, 1 insertion(+) diff --git a/snippets/zipWith.md b/snippets/zipWith.md index 024dca82f..b9dc53acc 100644 --- a/snippets/zipWith.md +++ b/snippets/zipWith.md @@ -19,4 +19,5 @@ const zipWith = (...arrays) => { ``` js zipWith([1, 2], [10, 20], [100, 200], (a,b,c) => a + b + c); // [111,222] +zipWith([1, 2, 3], [10, 20], [100, 200], (a,b,c) => (a != null ? a : 'a') + (b != null ? b:'b') + (c != null ? c : 'c')); // [111, 222, '3bc] ```