+1
-1
@@ -208,3 +208,3 @@ // Generated code -- http://www.redblobgames.com/grids/hexagons/ | ||
| return hexes.reduce(function(cur, val, index) { | ||
| if cur is -1 and val.q is hex.q and val.r is hex.r then index else cur | ||
| return cur === -1 && val.q === hex.q && val.r === hex.r && val.s === hex.s ? index : cur; | ||
| }, -1); | ||
@@ -211,0 +211,0 @@ } |
+1
-1
@@ -5,3 +5,3 @@ { | ||
| "description": "", | ||
| "version": "0.1.6", | ||
| "version": "0.1.7", | ||
| "license": "MIT", | ||
@@ -8,0 +8,0 @@ "homepage": "http://www.redblobgames.com/grids/hexagons/", |
12145
0.16%