ARTICLE AD BOX
e=>e is not an abbreviation, it is a function (an arrow function) that returns its argument unchanged. For null it returns null, for NaN it returns NaN, for 1 it returns 1, and so on. Since filter filters out those values for which this callback doesn't return thruthy, the result will not include the values null, NaN and undefined, which are falsy. So the filtering is done on the thruthy value of the array elements themselves
kikon
– kikon
2026-03-15 02:14:33 +00:00
Commented 5 hours ago
