Monday, December 6, 2021

Filter of array that starts with in Javascript

 UniqueTrainIDArr.filter(a=>a.startsWith("2"))

UniqueTrainIDArr.filter(a=>a==d.key)

No comments:

Post a Comment