What does this code using [].filter.call do?

It's getting all the children of the "raffles-list" element, then returning a filtered list of those that contain an empty "style" attribute.

The first line is pretty self-evident - it just retrieves the children from the element with id "raffles-list".

The second line is a little more complicated; it's taking advantage of two things: that [], which is an empty array, is really just an object with various methods/properties on it, and that the logic on the right hand side of the equals sign needs to be evaluated before "list" gets the new value.

  1. Uses a blank array in order to call the "filter" method
  2. Tells the filter to use list as the array to filter, and uses function(j) to do the filtering, where j is the item in the list being tested
  3. If the item has a style attribute that is empty, i.e. has no style applied, it returns true.

Edit: As per OP comment, [].filter is a prototype, so essentially an object which has various properties just like everything else. In this case filter is a method - see here. Normally you just specify an anonymous function/method that does the testing, however the author here has used the .call in order to specify an arbitrary object to do the testing on. It appears this is already built into the standard filter method, so I don't know why they did it this way.