-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Description
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
Labels
No labels