mirror of
https://github.com/maputnik/editor.git
synced 2026-07-30 01:37:27 +00:00
Tidy function.
This commit is contained in:
@@ -19,7 +19,12 @@ function isZoomField(value) {
|
|||||||
typeof(value.property) === 'undefined' &&
|
typeof(value.property) === 'undefined' &&
|
||||||
Array.isArray(value.stops) &&
|
Array.isArray(value.stops) &&
|
||||||
value.stops.length > 1 &&
|
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