There doesn\'t seem to be a way to extend an existing JavaScript array with another array, i.e. to emulate Python\'s extend method.
extend
I want to achieve th
Use Array.extend instead of Array.push for > 150,000 records.
Array.extend
Array.push
if (!Array.prototype.extend) { Array.prototype.extend = function(arr) { if (!Array.isArray(arr)) { return this; } for (let record of arr) { this.push(record); } return this; }; }