pastojs: fixed insert array

This commit is contained in:
mattias 2021-04-15 21:05:52 +00:00
parent 97a20217c1
commit fafb26deae

View File

@ -1042,7 +1042,8 @@ var rtl = {
arrayInsert: function(item, arr, index){
if (arr){
return arr.splice(index,0,item);
arr.splice(index,0,item);
return arr;
} else {
return [item];
}