From 85dd2de7a92f2f0aa5e1f1ad109d0aa084745f5d Mon Sep 17 00:00:00 2001 From: Isabelle Viktoria Maciohsek Date: Wed, 16 Dec 2020 13:42:27 +0200 Subject: [PATCH] Update toKebabCase.md --- snippets/toKebabCase.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snippets/toKebabCase.md b/snippets/toKebabCase.md index 69d415551..d23e36831 100644 --- a/snippets/toKebabCase.md +++ b/snippets/toKebabCase.md @@ -6,7 +6,7 @@ tags: string,regexp,intermediate Converts a string to kebab case. - Use `String.prototype.match()` to break the string into words using an appropriate regexp. -- Use `Array.prototype.map()`, `Array.prototype.slice()`, `Array.prototype.join()` and `String.prototype.toLowerCase()` to combine them, adding `-` as a separator. +- Use `Array.prototype.map()`, `Array.prototype.join()` and `String.prototype.toLowerCase()` to combine them, adding `-` as a separator. ```js const toKebabCase = str =>