Array.Filter


Filtering all the items that contain the characters "ab"

const myArray = ['ab1','ab2','cd1','cd2']  
const myResult = myArray.filter(member => member.match(/ab/);



© 2021 Better Solutions Limited. All Rights Reserved. © 2021 Better Solutions Limited TopPrevNext