vendor/seriously.js
function makePolygonsArray(poly) {
				if (!poly || !poly.length || !Array.isArray(poly)) {
					return [];
				}

				if (!Array.isArray(poly[0])) {
					return [poly];
				}

				if (Array.isArray(poly[0]) && !isNaN(poly[0][0])) {
					return [poly];
				}

				return poly;
			}
function makePolygonsArray(poly) {
				if (!poly || !poly.length || !Array.isArray(poly)) {
					return [];
				}

				if (!Array.isArray(poly[0])) {
					return [poly];
				}

				if (Array.isArray(poly[0]) && !isNaN(poly[0][0])) {
					return [poly];
				}

				return poly;
			}
function makePolygonsArray ( poly ) { if ( ! poly || ! poly . length || ! Array . isArray ( poly ) ) { return [ ] ; } if ( ! Array . isArray ( poly [ 0 ] ) ) { return [ poly ] ; } if ( Array . isArray ( poly [ 0 ] ) && ! isNaN ( poly [ 0 ] [ 0 ] ) ) { return [ poly ] ; } return poly ; }
detect whether it's multiple polygons or what
detect whether it s multiple polygons or what