Here is the code snippet I am working with:
var ietms = $cookies.get('items');
Although I can retrieve values, they appear in multiples like:
Testvalue1|Testvalue2|testvalue3
I would like to separate these three items into individual variables, for example:
var ietms = $cookies.get('items')[0];
var ietms2 = $cookies.get('items')[1];
var ietms3 = $cookies.get('items')[2];
The goal is to split the value based on the '|' delimiter that separates the values.