JavaScript Get Cookie Value One Liner
const value = ('; '+document.cookie).split(`; COOKIE_NAME=`).pop().split(';')[0];
Gershom Rogers
const value = ('; '+document.cookie).split(`; COOKIE_NAME=`).pop().split(';')[0];