Skip to content

_.groupBy does nothing when length is 1 #21

Open
@mrodrig

Description

@mrodrig

With underscore.py:

_.groupBy(['one'], lambda x, l: len(x))
# --> ['one']

With underscore.js:

_.groupBy(['one'], 'length')
// --> {3: ["one"]}

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