Skip to content

Commit

Permalink
Merge pull request #297 from unadlib/fix/0406
Browse files Browse the repository at this point in the history
Fix Record.fromEntries example
  • Loading branch information
rickbutton authored Apr 7, 2022
2 parents 621a954 + bed3643 commit 9cc206e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ You can convert structures using `Record()`, `Tuple()` (with the spread operator

```js
const record = Record({ a: 1, b: 2, c: 3 });
const record2 = Record.fromEntries([#["a", 1], #["b", 2], #["c", 3]]); // note that an iterable will also work
const record2 = Record.fromEntries([["a", 1], #["b", 2], { 0: 'c', 1: 3 }]); // note that any iterable of entries will work
const tuple = Tuple(...[1, 2, 3]);
const tuple2 = Tuple.from([1, 2, 3]); // note that an iterable will also work

Expand Down

0 comments on commit 9cc206e

Please sign in to comment.