Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Array.prototype.unique = function () {
- var keys = {},
- result = [],
- items = this.length
- while ( items )
- keys[ this[ --items ] ] = true
- for ( var key in keys )
- if ( !keys.hasOwnProperty( key ) )
- continue
- result.push( key )
- return result
- }
Add Comment
Please, Sign In to add comment