use isEmpty
rename byId -> counter
use isUndefined
formatting
use where callback shorthand
update lo-dash 2.0.0 -> 2.1.0