Last active
November 18, 2024 18:51
-
-
Save bellydrum/cfc7869243b4d5c4e7ae710ea59edf67 to your computer and use it in GitHub Desktop.
Cookie Monster v1.1.1
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I will be updating the methods for v2.0, something along the lines of:
.getAsObject()
=>.get( cookie=null )
- unifies the two methods and usescookie
as an optional parameter, defaulting to all cookies..hasKey( key )
=>.has( cookie )
- removes implied word "key"..addObject()
=>.add( cookie, value )
- removes implied word "key"..getValueByKey( key )
=>.getValue( cookie )
- removes implied word "key"..flush( keys=[ e, <...> ] )
=>.flush( cookie=null )
I will be DEPRECATING the following methods in v2.0, and subsequently REMOVING them in a future release:
.getObjectByKey()
=> DEPRECATED in favor of.get( cookie=null )
..deleteByKey()
=> DEPRECATED in favor of.flush( cookie=null )
.