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 9 Ways To Remove 🗑️ Elements From A JavaScript Array 📇[Examples] I found a working alternative: indices.length = 0; source.change.emit();
Thought I would share this for other newbies like myself.