mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-28 18:00:09 +00:00
bugfix...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
c3a4d9adf4
commit
e7520bab88
@ -97,7 +97,7 @@ Array.prototype.toMap = function(normalize){
|
||||
// NOTE: for an array containing only strings use a much faster .uniqueStrings(..)
|
||||
// NOTE: this may not work on IE...
|
||||
Array.prototype.unique = function(normalize){
|
||||
return new Array(...(new Set(normalize ? normalize(this) : this))) }
|
||||
return new Array(...(new Set(normalize ? this.map(normalize) : this))) }
|
||||
|
||||
|
||||
// Compare two arrays...
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user