concat-elements is an alternative to concat elements in one array.
you can concat strings, number, boolean, arrays and objects similary to default method concat of ECMA 262
npm install concat-elements
const concatElements = require("concat-elements");
let food = ["🍔", "🍕", "🍖", "🍗"];
let animals = ["🐜", "🐅", "🐆", "🦙"];
const array = concatElements(1, "s", food, animals, { name: "test" });
//output: [ 1, 's', '🍔', '🍕', '🍖', '🍗','🐜','🐅','🐆','🦙', { name: 'test' }]
concatElements(element1[, element2[, ...[, elementN]]]);
sample of time in 1000 iterations