Menu
This works fine with the .filter() function:
[code]
let tmp = wds.filter(function(w) { return w.length > 4; } );
Neither of the following works with the fat-arrow functions
[code]
let tmp = wds.filter( w => w.length > 4; );
let tmp = wds.filter( w => (w.length > 4); );
wds is just an array of variable length words (strings).
I’m trying to eliminate the words of less than 5 characters.
Anyone see where I’m going wrong with either of the fat-arrow versions?