Ответ крайне прост, но не очевиден:
// записываем массив в localstorage
var arr = ['first', 'second', 'third'];
localStorage.setItem("arr", JSON.stringify(arr));
// читаем массив из localstorage
arr = localStorage.getItem("arr") ? JSON.parse(localStorage.getItem("arr")) : [];