Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Bug in Array.diff

  • Loading branch information...
commit aa788633d4924ae86af5fd7eae83425f8900c6c5 1 parent 1752478
@archaeron archaeron authored
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);
Please sign in to comment.
Something went wrong with that request. Please try again.