Skip to content

Commit

Permalink
add destructuring note
Browse files Browse the repository at this point in the history
  • Loading branch information
timhaywood committed Sep 18, 2020
1 parent 5f03350 commit 9f072ba
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,14 @@ const inKeys = [
eKeys.animate(inKeys, time);
```

You can also [destructure](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Destructuring_assignment) `animate` from the `sourceData` object:

```javascript
const { animate } = footage('eKeys.jsx').sourceData;
// ...
animate(inKeys, time);
```

[Back To Top ↑]

## Helpful Snippets
Expand Down

0 comments on commit 9f072ba

Please sign in to comment.