Lambda in Angular (typescript)

Posted on by Kim

return books.bar.filter(function (x) {
  return x.id === null;
}).length;

change to

return books.bar.filters(b => b.id === null).length;

0 Responses to "Lambda in Angular (typescript)":