Can someone help me with some method, function, or whatever, to make a string become an array made up of pieces of the same string example:
var string = "stackoverflow";
var array = [];
console.log(array) // ['stack'], ['over'], ['flow']
and / or
var string = "gameoveragain";
var array = [];
console.log(array) // ['game'], ['over'], ['again']'
Well this is what I want as in the examples, something where I can reuse, and that always finds the 'over' section in the string and from there the string becomes a separate array, in this case it can be an array with 3 items 2, 1 or several, if in case it is always found specifically 'over' within the string.