Check out example codes for "typescript filter list by property". It will help you in understanding the concepts better.

Code Example 1

const object = {
  firstAttribute: 'firstValue',
  secondAttribute: 'secondValue'
};  

objectList.filter(o -> o.firstAttribute === 'firstValue');

Code Example 2

var numbers = [1, 3, 6, 8, 11];

var lucky = numbers.filter(function(number) {
  return number > 7;
});

// [ 8, 11 ]

Learn ReactJs, React Native from akashmittal.com