Link Search Menu Expand Document

eat( key : string )

Removes the specified cookie. Basically is a echo function of remove( ).

Parameters

  • key String - The key of the cookie to remove.

Returns

  • completed Boolean.

Example

oreo.eat( 'cookie_key' ) ;

console.log( cookie.eat( 'my-cookie' ) ) ;
/* Console.Log => true */