filterBF function

Filter the elements of an object according to some pre-specified criteria