mahler
Version:
A automated task composer and HTN based planner for building autonomous system agents
12 lines • 394 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.isArrayIndex = isArrayIndex;
function isArrayIndex(x) {
return (x != null &&
((typeof x === 'number' && x >= 0) ||
(typeof x === 'string' &&
!isNaN(+x) &&
+x === parseInt(x, 10) &&
+x >= 0)));
}
//# sourceMappingURL=is-array-index.js.map