keyString - The key of the cookie to search value.
Returns
valueAny - The value stored of the selected cookie. If the cookie doesn't exists, the method will return undefined. Also, the stored value will be converted automatically by the package, returning a string, number, float, boolean even a new Date( ) or JSON Object.
Example
varcookie=oreo.get('cookie_key');/* Fast-Line Version [v] */varcookie=oreo('cookie_key');/* Date example [v] *//* This cookie have storaged a DateISOString, so will return a new Date( ) automatically. *//* DateISOString: 2020-12-20T15:16:18.135Z */varcookie=oreo('date-cookie');console.log(cookie.getFullYear());/* Console.Log => 2020 */