great use of `array/append`, way more readable than 2 nested loops and faster/better than `Array.prototype.push.apply`...