Skip to content
This repository was archived by the owner on Dec 22, 2022. It is now read-only.

Commit 7b3ab70

Browse files
committed
Merge pull request #9 from ipanasenko/patch-1
Update docs: add missing myObject
2 parents 411ed82 + 091daf3 commit 7b3ab70

File tree

1 file changed

+2
-2
lines changed
  • src/projections/molecules/transform

1 file changed

+2
-2
lines changed

src/projections/molecules/transform/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@ const myObject = {
3333
$transform({
3434
who: $get('people.roomMate1'),
3535
where: $get('rooms.living.name')
36-
}); // returns { who: 'Jane Doe', where: 'Living Room' }
36+
}, myObject); // returns { who: 'Jane Doe', where: 'Living Room' }
3737

3838
$transform({
3939
who: $get('people.roomMate2'),
4040
where: $get('rooms.kitchen.name')
41-
}); // returns { who: 'John Schmoe', where: 'Kitchen' }
41+
}, myObject); // returns { who: 'John Schmoe', where: 'Kitchen' }
4242
```

0 commit comments

Comments
 (0)