Permalink
Browse files

Bug in Array.diff

  • Loading branch information...
1 parent 1752478 commit aa788633d4924ae86af5fd7eae83425f8900c6c5 @archaeron archaeron committed Apr 24, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/array.js
View
2 lib/array.js
@@ -294,7 +294,7 @@ extend(Array.prototype, {
values = concat.apply([], concat.apply(this, arguments));
if (values.length === 0) return [];
- else if (values.length === 1) return arrays[0];
+ else if (values.length === 1) return values[0];
return values.filter(function (a,i,t) {
return t.indexOf(a) === t.lastIndexOf(a);

0 comments on commit aa78863

Please sign in to comment.