Revert "_.partition only accepts arrays."

This reverts commit e4785d38556632d58334616c33292eee95fddfb3.