(a, b)
| 1187 | // @factory L.bounds(points: Point[]) |
| 1188 | // Creates a Bounds object from the given array of points. |
| 1189 | function toBounds(a, b) { |
| 1190 | if (!a || a instanceof Bounds) { |
| 1191 | return a; |
| 1192 | } |
| 1193 | return new Bounds(a, b); |
| 1194 | } |
| 1195 | |
| 1196 | /* |
| 1197 | * @class LatLngBounds |