How do I implement a fast way to filter a large array of 20k objects?

Thanks @arnaudlze,

I have just fork and create another snippet for demonstration.

See https://jsfiddle.net/maheshwaghmare/cfx3p40v/3/