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 90fb381 commit d4d61efCopy full SHA for d4d61ef
src/observer/index.js
@@ -25,7 +25,7 @@ function Observer (value) {
25
: copyAugment
26
augment(value, arrayMethods, arrayKeys)
27
this.observeArray(value)
28
- } else {
+ } else if (_.isPlainObject(value)) {
29
this.walk(value)
30
}
31
src/util/lang.js
@@ -191,8 +191,9 @@ exports.isObject = function (obj) {
191
*/
192
193
var toString = Object.prototype.toString
194
+var OBJECT_STRING = '[object Object]'
195
exports.isPlainObject = function (obj) {
- return toString.call(obj) === '[object Object]'
196
+ return toString.call(obj) === OBJECT_STRING
197
198
199
/**
0 commit comments