Parse an HTTP Cookie header string and return an object of all cookie name-value pairs.
Use String.split(';') to separate key-value pairs from each other. Use Array.map() and String.split('=') to separate keys from values in each pair. Use Array.reduce() and decodeURIComponent() to create an object with all key-value pairs.
const parseCookie = str =>
str
.split(';')
diff --git a/snippets/nthArg.md b/snippets/nthArg.md
index c94224326..159975b89 100644
--- a/snippets/nthArg.md
+++ b/snippets/nthArg.md
@@ -10,8 +10,8 @@ const nthArg = n => (...args) => args.slice(n)[0];
```js
const third = nthArg(2);
-third(1,2,3); // 3
-third(1,2); // undefined
+third(1, 2, 3); // 3
+third(1, 2); // undefined
const last = nthArg(-1);
-last(1,2,3,4,5); // 5
+last(1, 2, 3, 4, 5); // 5
```