a-synchronous / a-synchronous/rubico

map.keys

Open
#171 1 comment 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
JavaScript
Stars
283
Forks
17
PR merge metrics
No merged PRs in 30d

Description

```coffeescript
map.keys(mapper (key string)=>Promise|string)(object Object) -> mappedKeys Promise|Object
```

Apply a mapper concurrently to an object's keys, returning an object with mapped keys.

```javascript
console.log(
map.keys(key => `#${key}`)({ a: 1, b: 2, c: 3 }),
) // { '#a': 1, '#b': 2, '#c': 3 }
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.