improve jsdocs
drop _.filter and _.some
use array comprehansinos instead of map
version 2.0.0-beta.2