console.log passed function argument
30/07/2018 — 1 Min Read — In JavaScript, ES6
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);
PreviousConvert object to array