Skip to content

Commit

Permalink
Fix example results for mapKeys
Browse files Browse the repository at this point in the history
  • Loading branch information
aleclarson authored Jun 9, 2024
1 parent 069b26c commit ff3d093
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/object/map-keys.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ const ra = {
power: 'sun'
}

mapKeys(ra, key => key.toUpperCase()) // => { MODE, POWER }
mapKeys(ra, (key, value) => value) // => { god: 'god', power: 'power' }
mapKeys(ra, key => key.toUpperCase()) // => { MODE: 'god', POWER: 'sun' }
mapKeys(ra, (key, value) => value) // => { god: 'god', sun: 'sun' }
```

0 comments on commit ff3d093

Please sign in to comment.