I have a string like this
myarr = ['A511-0001-01', 'APWA-0001-03', 'APWA-9999-99'];
and i have a substring to filter myarr
like AP
how can i get myarr to myarr = ['APWA-0001-03', 'APWA-9999-99'];
(remove 'A511-0001-01'
) with Javascript ?
Thanks for read. Im newbie
i don’t know to try with this specs
New contributor
BAO TRUNG NGO is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
1