📅  最后修改于: 2022-03-11 15:01:57.885000             🧑  作者: Mango
// the fastest way to string concat in cycle when number of string is less than 1e6
// see https://medium.com/@devchache/the-performance-of-javascript-string-concat-e52466ca2b3a
// see https://www.javaer101.com/en/article/2631962.html
function concat(arr) {
let str = '';
for (let i = 0; i < arr.length; i++) {
str += arr[i];
}
return str;
}