nl_tokens: Creates a duplicate - free version of an array using [ SameValueZero ] ( http : // ecma - international . org / ecma - 262 / 6 . 0 / #sec - samevaluezero ) for equality comparisons in which only the first occurence of each element is kept . Providing true for isSorted performs a faster search algorithm for sorted arrays . If an iteratee function is provided it is invoked for each element in the array to generate the criterion by which uniqueness is computed . The iteratee is bound to thisArg and invoked with three arguments : ( value index array ) .
pl_tokens: function uniq ( array , isSorted , iteratee , thisArg ) { var <mask> = array ? array . length : 0 ; if ( ! length ) { return [ ] ; } if ( isSorted != null && typeof isSorted != 'boolean' ) { thisArg = iteratee ; iteratee = isIterateeCall ( array , isSorted , thisArg ) ? undefined : isSorted ; isSorted = false ; } iteratee = iteratee == null ? iteratee : baseCallback ( iteratee , thisArg , 3 ) ; return ( isSorted ) ? sortedUniq ( array , iteratee ) : baseUniq ( array , iteratee ) ; }