ran npm run tdd

This commit is contained in:
King
2018-01-15 10:58:44 -05:00
parent 56f977bf63
commit 58c65ecf1e
28 changed files with 247 additions and 0 deletions

View File

@ -0,0 +1,8 @@
module.exports = parseCookie = str =>
str
.split(';')
.map(v => v.split('='))
.reduce((acc, v) => {
acc[decodeURIComponent(v[0].trim())] = decodeURIComponent(v[1].trim());
return acc;
}, {});