Help with filtering an array using endsWith

@spencerbeebe Not it’s always case sensitive, if you want it to ignore the case sensitivity, just set all of them to lower case, here’s how:

const filtered = array.map(item => item.id.toLowerCase().endsWith('bg'));

Hope this helps!~
Ahmad