Skip to content

afeiship/next-min-by

Repository files navigation

next-min-by

This method is like .min except that it accepts iteratee which is invoked for each element in array to generate the criterion by which the value is ranked.

usage:

var objects = [{ 'n': 1 }, { 'n': 2 }];
var min = nx.minBy(objects, function (_, o) {
  return o.n;
});

// {n: 1}

About

This method is like _.min except that it accepts iteratee which is invoked for each element in array to generate the criterion by which the value is ranked.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published