Skip to content

Commit ccaaad8

Browse files
committed
Add destructuring note
1 parent 993828f commit ccaaad8

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

README.md

+8
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,14 @@ const ae = footage('aefunctions.jsx').sourceData.getFunctions(time);
6767
ae.attachKeys(2, 2);
6868
```
6969

70+
You can also [destructure](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Destructuring_assignment) any required functions:
71+
72+
```javascript
73+
const { attachKeys, countLines } = footage(
74+
'aefunctions.jsx'
75+
).sourceData.getFunctions(time);
76+
```
77+
7078
[Back To Top ↑]
7179

7280
## License

0 commit comments

Comments
 (0)