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.
1 parent 7fed296 commit 5e1f3bfCopy full SHA for 5e1f3bf
src/jsonpatcherproxy.js
@@ -134,7 +134,7 @@ const JSONPatcherProxy = (function() {
134
} else {
135
if (Array.isArray(target) && !Number.isInteger(+key.toString())) {
136
/* array props (as opposed to indices) don't emit any patches, to avoid needless `length` patches */
137
- if(key.toString() !== 'length') {
+ if(key != 'length') {
138
console.warn('JSONPatcherProxy noticed a non-integer prop was set for an array. This will not emit a patch');
139
}
140
return Reflect.set(target, key, newValue);
0 commit comments