Saving an Empty Array to LocalStorage on Page Load

Giovanni Pace

Description

I'll show you how to initialise LocalStorage on the first page load with an empty array, without overwriting existing data in subsequent sessions.