Skip to content

Values map #27

@rstacruz

Description

@rstacruz

It'd be nice to have a version of .map that will always return an array instead of an object. Very useful for JSX.

const listMap = require('object-keys/list-map')

people = {
  john: "John Lennon",
  ringo: "Ringo Starr"
}

<div>
  {listMap(people, name => `Mr. ${name}`)}
</div>

I can send you a PR, but I don't know what to name this function!

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