Skip to content
This repository has been archived by the owner on Oct 12, 2023. It is now read-only.

Added fix for prototype.js > 1.7.3 #43

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion humps.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
return obj === Object(obj);
};
var _isArray = function(obj) {
return toString.call(obj) == '[object Array]';
return 'isArray' in Array ? Array.isArray(obj) : toString.call(obj) == '[object Array]';
};
var _isDate = function(obj) {
return toString.call(obj) == '[object Date]';
Expand Down