JavaScript obtient un cookie Value One liner

const value = ('; '+document.cookie).split(`; COOKIE_NAME=`).pop().split(';')[0];
Gershom Rogers