console.log passed function argument

ES6 TIP: console.log passed value, when using implicit arrow function return

const frameworks = [
  {
    name: 'Angular',
    stars: 39000,
  },
  {
    name: 'React',
    stars: 107000,
  },
  {
    name: 'Vue',
    stars: 109000,
  },
];

const over100k = frameworks.filter(
  frm => console.log(frm) || frm.stars > 100000
);
🛠️ with ❤️ by Ash Hitchcock © 2022 | Uses