UNPKG

osrm

Version:

The Open Source Routing Machine is a high performance routing engine written in C++14 designed to run on OpenStreetMap data.

11 lines (8 loc) 204 B
'use strict'; module.exports = function isArrayish(obj) { if (!obj) { return false; } return obj instanceof Array || Array.isArray(obj) || (obj.length >= 0 && obj.splice instanceof Function); };