use array.filter() to dynamically filter an array

welcome to shbcf.ru