We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a7c1689 + f3b8f23 commit aff86c7Copy full SHA for aff86c7
src/observer/array.js
@@ -62,7 +62,7 @@ def(
62
'$set',
63
function $set (index, val) {
64
if (index >= this.length) {
65
- this.length = index + 1
+ this.length = Number(index) + 1
66
}
67
return this.splice(index, 1, val)[0]
68
0 commit comments