UNPKG

ts-simple-ast

Version:

TypeScript compiler wrapper for AST navigation and code generation.

13 lines (11 loc) 387 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); /** * Gets the end index from a possibly undefined array. * @param array - Array that could possibly be undefined. */ function getEndIndexFromArray(array) { return array == null ? 0 : array.length; } exports.getEndIndexFromArray = getEndIndexFromArray; //# sourceMappingURL=getEndIndexFromArray.js.map