Skip to content

Max filter not using Math.max #8

@btesser-r7

Description

@btesser-r7

Why are you not utilizing Math.max in your max filter?

function maxFilter($window) {
  return function (collection) {
    return $window.Math.max.apply(Math, collection);
  };
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions