There is already a selected answer, but I thought the following would help. You can disable the observation behavior by executing your observable array to get the implementation of the underlying array:
var underlyingArray = viewModel.someArr();
Then you can add elements to underlyingArray without disabling someArr events. When you are finished adding items, call:
viewModel.someArr.valueHasMutated();
This will cause the event to trigger a notification of all observable viewModel.someArr () dependent.
Jd courtoy
source share