score:1

Accepted answer

from your edit, it looks like what console.log is showing is actually a string. so, doing a json.decode on what cookies.get is returning should do the trick:

const favourites = json.decode(cookies.get('favourites'));

Related Query

More Query from same tag