Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Function Descriptions

getPrefs

Gets a cookie with a specific name's value.

Example UsageArgumentsReturn Value
ps.getPrefs(name);name - string of the name of the cookie that you want

an object representing the cookie that you requested, the format being:

name: value of cookie

null if no cookie for name exists

asNumbers

Converts string values to numbers for all or selected keys.

Example UsageArgumentsReturn Value
ps.asNumbers(obj, keys);

obj - cookie object that has string values representing numbers

keys - (optional) a set of keys that you want their values to be converted to numbers. If this value is falsy, then all keys in obj will be converted to numbers.

 

 

setPrefs