Fun trick with Array#filter #JavaScript