I have a getter to get the value from a cookie.
Now I have 2 cookies by the name shares= and by the name obligations= .
shares=
obligations=
I want to
In my projects I use following function to access cookies by name
function getCookie(cookie) { return document.cookie.split(';').reduce(function(prev, c) { var arr = c.split('='); return (arr[0].trim() === cookie) ? arr[1] : prev; }, undefined); }