Skip to content

_.pairs and maps #2517

Closed
Closed
@jdalton

Description

@jdalton

I was working with maps and reached for a _.pairs method to get its key-value pairs and thought it would be handy to support.

var m = new Map([['a', 1], ['b', 2]]);
_.pairs(m);
// => [['a', 1], ['b', 2]]

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions