This works:
[1 to 10] |> filter (> 4) |> console.log #[ 5, 6, 7, 8, 9, 10 ]
This works:
empty {} #true
but this doesn't:
[{"foo"}, {"bar"}, {}, {}] |> filter empty |> console.log # [ { foo: 'foo' }, { bar: 'bar' }, {}, {} ]
[{"foo"}, {"bar"}, {}, {}] |> map (-> console.log (empty it) ) #true true true true
Is this a problem with empty?
Any help will be appreciated.