If you ever need to clear an Array with one line do this: array.splice(0, array.length) meaning start at index 0 and splice everything.
If you ever need to clear an Array with one line do this: array.splice(0, array.length) meaning start at index 0 and splice everything.
@kingkool68
WordPress developer at @CoderPad. Formerly of @nclud @spiritedmediaco, @pewresearch, @usnews. I made dummyimage.com and married @naudebynature.