mirror of
https://github.com/maputnik/editor.git
synced 2026-12-02 23:04:20 +00:00
Tidy function.
This commit is contained in:
1 parent
0705522a24
commit
52e8b21b3d
1 file changed
+6
-1
@@ -19,7 +19,12 @@ function isZoomField(value) {
|
||||
typeof(value.property) === 'undefined' &&
|
||||
Array.isArray(value.stops) &&
|
||||
value.stops.length > 1 &&
|
||||
value.stops.every(stop => Array.isArray(stop) && stop.length === 2)
|
||||
value.stops.every(stop => {
|
||||
return (
|
||||
Array.isArray(stop) &&
|
||||
stop.length === 2
|
||||
);
|
||||
})
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user