diff --git a/snippets/currentURL.md b/snippets/currentURL.md index 0fab76ab3..e0f78d0d1 100644 --- a/snippets/currentURL.md +++ b/snippets/currentURL.md @@ -9,5 +9,5 @@ const currentURL = () => window.location.href; ``` ```js -currentUrl() // 'https://google.com' +currentURL() // 'https://google.com' ``` diff --git a/snippets/digitize.md b/snippets/digitize.md index a8a605ef7..c96d2099b 100644 --- a/snippets/digitize.md +++ b/snippets/digitize.md @@ -10,5 +10,5 @@ const digitize = n => [...'' + n].map(i => parseInt(i)); ``` ```js -differenceWith([1, 1.2, 1.5, 3], [1.9, 3], (a,b) => Math.round(a) == Math.round(b)) // [1, 1.2] +digitize(123) // [1, 2, 3] ```