Expand my Community achievements bar.

Help shape the future of AI assistance by participating in this quick card sorting activity. Your input will help create a more effective system that better serves your needs and those of your colleagues.

_satellite.cookie.set: update signature to allow setting the third parameter as an integer rather than object

Avatar

Level 1

7/14/21

Description - the cookie set function's third argument is an object. Please allow it to be an integer for those who used to old syntax.

Why is this feature important to you - seeing too many developers supplying an integer there and failing.

How would you like the feature to work - check the type of the third argument and if it's an int, just use it for days as you do with the object

Current Behaviour - supplying int does nothing.