Please enable JavaScript to use RhodeCode Enterprise
Commit Description:
fix wrong merge
Commit Description:
fix wrong merge
"use strict" ;
var value = require ( "../../object/valid-value" )
, aFrom = require ( "../from" )
, toArray = require ( "../to-array" )
, contains = require ( "./contains" )
, byLength = require ( "./_compare-by-length" )
, filter = Array . prototype . filter
, push = Array . prototype . push ;
module . exports = function ( /* …lists*/ ) {
var lists , seen , result ;
if ( ! arguments . length ) return aFrom ( this );
push . apply (( lists = [ this ]), arguments );
lists . forEach ( value );
seen = [];
result = [];
lists . sort ( byLength ). forEach ( function ( list ) {
result = result
. filter ( function ( item ) { return ! contains . call ( list , item ); })
. concat ( filter . call ( list , function ( item ) { return ! contains . call ( seen , item ); }));
push . apply ( seen , toArray ( list ));
});
return result ;
};
Site-wide shortcuts
/
Use quick search box
g h
Goto home page
g g
Goto my private gists page
g G
Goto my public gists page
n r
New repository page
n g
New gist page
Repositories
g s
Goto summary page
g c
Goto changelog page
g f
Goto files page
g F
Goto files page with file search activated
g p
Goto pull requests page
g o
Goto repository settings
g O
Goto repository permissions settings