From 9fea50f1a06ca0d1a8f81e9f308a64cd356c5219 Mon Sep 17 00:00:00 2001 From: Lukas Bals Date: Tue, 8 Jun 2021 15:18:27 +0100 Subject: [PATCH] Update toCamelCase snippet to use const instead of let --- snippets/toCamelCase.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snippets/toCamelCase.md b/snippets/toCamelCase.md index 31271f604..f5e2e661a 100644 --- a/snippets/toCamelCase.md +++ b/snippets/toCamelCase.md @@ -10,7 +10,7 @@ Converts a string to camelcase. ```js const toCamelCase = str => { - let s = + const s = str && str .match(