Skip to content

maxBy run its callback once even if array is empty #29

Closed
@SkReD

Description

@SkReD

This line https://github.com/TinkoffCreditSystems/utils.js/blob/master/src/array/maxBy.js#L17 is always executed and error may occure if callback not check its input

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions