Added setCookie, getCookie, removeCookie (#86)
Added setCookie, getCookie, removeCookie (#86)

* Added setCookie, getCookie, removeCookie

* Don’t use boxed types

* Always use JSON.stringify

* Use merge instead of Object.assign

* CS

* Simplify statement

* Let JSON.stringify errors bubble to the top

* CS

* Simplify even more

* Fallback to an array when document.cookie is not available

* Don’t slice up string as we’re now always encoding in JSON

* Use RegEx for faster lookup and bubble any JSON.parse errors

* Set default cookie expiration of 30 days if nothing but null or an explicit date/number is passed

* Simplify setting default expiration due to new `merge` capabilities

* Optimize file size

* Return string instead of string array

Becklyn/mojave,Becklyn/mojave,Becklyn/mojave