Filter Method In Javascript Array Of Strings In Cpp