Skip to content

Commit

Permalink
fix: array type logic
Browse files Browse the repository at this point in the history
  • Loading branch information
arturo32 authored Dec 2, 2024
1 parent 87146c9 commit a69bf22
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion memoryCell.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export default {
}
},
content() {
if (this.isInHeap) {
if (this.isArray) {
return this.variable[1][2][3];
} else {
return this.variable[1][3];
Expand All @@ -91,6 +91,9 @@ export default {
isInHeap() {
return this.variable[2];
},
isArray() {
this.variable[2][2].constructor === Array;
}
},
watch: {
variable:{
Expand Down

0 comments on commit a69bf22

Please sign in to comment.