Skip to content

Instantly share code, notes, and snippets.

@Kamilnaja
Created August 17, 2019 07:33
Show Gist options
  • Save Kamilnaja/c790b2f6b0fe4248e545b89e6ddc9f1b to your computer and use it in GitHub Desktop.
Save Kamilnaja/c790b2f6b0fe4248e545b89e6ddc9f1b to your computer and use it in GitHub Desktop.
Programming exercise #12 Count, how many certain items exists in array of objects.
// So, you have input data like this
let objArr = [
{ id: 1, name: 'Kamil' },
{ id: 2, name: 'Janusz' },
{ id: 3, name: 'Mariusz' },
{ id: 4, name: 'Alina' },
{ id: 5, name: 'Olo' } ];
// Please count, how many names in your array contains letter 'm'.
// I suggest you, to use RXJS.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment