CustomJS Zero Out Filter Indices by Setting Length to Zero and Not indices = []

In CustomJS, I was running into a problem with clearing the displayed contents of a datatable by setting the registered filter’s indices = []; source.change.emit(); It just would not work. However, when I consulted I found a working alternative: indices.length = 0; source.change.emit();

Thought I would share this for other newbies like myself.