Skip to content

minBy/maxBy definitions are incorrect #22

@ericanderson

Description

@ericanderson

Per the documentation in lodash, they are only to accept an array, not a dictionary nor an object. Also, since the first thing done is a check for (array && array.length), we can conclude that the first parameter is optional (and when Typescript 2 comes along, optional or null).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions