How to filter an array of strings in JavaScript?

Published --