Skip to content
This repository has been archived by the owner on Oct 8, 2020. It is now read-only.

Examples #2

Open
richytong opened this issue Jun 22, 2020 · 0 comments
Open

Examples #2

richytong opened this issue Jun 22, 2020 · 0 comments
Labels
good first issue Good for newcomers

Comments

@richytong
Copy link
Contributor

richytong commented Jun 22, 2020

I'm taking recommendations for examples of the API methods.

For example, here is the example for assign

const putKeys = assign({
  keys: Object.keys,
})

console.log(putKeys({ a: 1, b: 2, c: 3 }))

const asyncPutValues = assign({
  values: async x => Object.values(x),
})

asyncPutValues({ a: 1, b: 2, c: 3 }).then(console.log)

if you have something you'd rather see there, please submit a pull request.

Examples should have a sync example and an async example

@richytong richytong added the good first issue Good for newcomers label Jun 22, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant