Skip to content

Commit

Permalink
Treat buffers separately from typed arrays.
Browse files Browse the repository at this point in the history
  • Loading branch information
jdalton committed Sep 28, 2016
1 parent c009349 commit 4495e74
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lodash.js
Expand Up @@ -3277,6 +3277,12 @@
othIsObj = othTag == objectTag,
isSameTag = objTag == othTag;

if (isSameTag && isBuffer(object)) {
if (!isBuffer(other)) {
return false;
}
objIsArr = true;
}
if (isSameTag && !objIsObj) {
stack || (stack = new Stack);
return (objIsArr || isTypedArray(object))
Expand Down

0 comments on commit 4495e74

Please sign in to comment.