mirror of
https://github.com/maputnik/editor.git
synced 2025-12-26 16:10:01 +00:00
Tidy function.
This commit is contained in:
@@ -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