Tidy function.

This commit is contained in:
orangemug 2020-02-18 08:06:36 +00:00
parent 0705522a24
commit 52e8b21b3d

View file

@ -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
);
})
);
}