(latlngs)
| 6527 | // @function isFlat(latlngs: LatLng[]): Boolean |
| 6528 | // Returns true if `latlngs` is a flat array, false is nested. |
| 6529 | function isFlat(latlngs) { |
| 6530 | return !isArray(latlngs[0]) || (typeof latlngs[0][0] !== 'object' && typeof latlngs[0][0] !== 'undefined'); |
| 6531 | } |
| 6532 | |
| 6533 | function _flat(latlngs) { |
| 6534 | console.warn('Deprecated use of _flat, please use L.LineUtil.isFlat instead.'); |
no test coverage detected