function safeArrayPush(arr, newArr) {
        if (newArr.length < MAX_ARGUMENT_FOR_STACK) {
            Array.prototype.push.apply(arr, newArr);
        } else {
            for(let i = 0; i < newArr.length; i += MAX_ARGUMENT_FOR_STACK){
                Array.prototype.push.apply(arr, newArr.slice(i, i + MAX_ARGUMENT_FOR_STACK));
            }
        }
    }
This method is needed to used because of issues like: https://github.com/oramasearch/orama/issues/301
that issue is caused because the array that is pushed is huge (>100k)

@example
```ts
safeArrayPush(myArray, [1, 2])
```