An implementation of arrays.api (based on lodash)