carhartl/jquery-cookie — Issue #46: Number as cookie value not accepted
Author: furiousjason
Created: 2012-01-20 04:35:02+00:00
State: open

Perhaps this is intended, but the detection below "key and at least value given, set cookie" fails to accept numbers, as

Object.prototype.toString.call(value)

returns

[object Number]

not

[object String]

Perhaps the incoming value could be cast to a string if non-empty, or [object Number] also allowed?