Skip to content

Commit 9f072ba

Browse files
committed
add destructuring note
1 parent 5f03350 commit 9f072ba

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,14 @@ const inKeys = [
191191
eKeys.animate(inKeys, time);
192192
```
193193

194+
You can also [destructure](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Destructuring_assignment) `animate` from the `sourceData` object:
195+
196+
```javascript
197+
const { animate } = footage('eKeys.jsx').sourceData;
198+
// ...
199+
animate(inKeys, time);
200+
```
201+
194202
[Back To Top ↑]
195203

196204
## Helpful Snippets

0 commit comments

Comments
 (0)