Skip to content

Commit

Permalink
Update content/ember/v5/deprecate-array-prototype-extensions.md
Browse files Browse the repository at this point in the history
Co-authored-by: Simon Ihmig <[email protected]>
  • Loading branch information
ef4 and simonihmig committed Jul 12, 2024
1 parent 765a3a8 commit 4f991c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion content/ember/v5/deprecate-array-prototype-extensions.md
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ import { action } from '@ember/object';
import { TrackedArray } from 'tracked-built-ins';

export default class SampleComponent extends Component {
abc = new TrackedArray();
abc = new TrackedArray(['x', 'y', 'z', 'x']);

get lastObj() {
return this.abc.at(-1);
Expand Down

0 comments on commit 4f991c2

Please sign in to comment.