mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 10:20:08 +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: for an array containing only strings use a much faster .uniqueStrings(..)
|
||||||
// NOTE: this may not work on IE...
|
// NOTE: this may not work on IE...
|
||||||
Array.prototype.unique = function(normalize){
|
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...
|
// Compare two arrays...
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user