🌐 AI搜索 & 代理 主页
Skip to content

Commit 4b55e94

Browse files
committed
Renamed isObject to isObjectLiteral to be more specific.
1 parent a8b089a commit 4b55e94

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/core.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ jQuery.extend = jQuery.fn.extend = function() {
280280
clone = src;
281281
} else if ( jQuery.isArray(copy) ) {
282282
clone = [];
283-
} else if ( jQuery.isObject(copy) ) {
283+
} else if ( jQuery.isObjectLiteral(copy) ) {
284284
clone = {};
285285
} else {
286286
clone = copy;
@@ -323,7 +323,7 @@ jQuery.extend({
323323
return toString.call(obj) === "[object Array]";
324324
},
325325

326-
isObject: function( obj ) {
326+
isObjectLiteral: function( obj ) {
327327
if ( toString.call(obj) !== "[object Object]" ) {
328328
return false;
329329
}

0 commit comments

Comments
 (0)