Skip to content

Commit 125ba69

Browse files
committed
docs: Updated readme source
1 parent 1295289 commit 125ba69

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

readme/example.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
import arrayToObjectKeys from "array-to-object-keys"
2+
3+
const array = ["a", "b"]
4+
const result = arrayToObjectKeys(array, (key, index) => `value for ${key} #${index + 1}`)

readme/result.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
a: "value for a #1",
3+
b: "value for b #2",
4+
}

0 commit comments

Comments
 (0)