This repository was archived by the owner on Oct 8, 2020. It is now read-only.
This repository was archived by the owner on Oct 8, 2020. It is now read-only.
Examples #2
Open
Description
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