@trapi/metadata
Version:
Generate REST-API metadata scheme from TypeScript Decorators.
22 lines • 608 B
JavaScript
;
/*
* Copyright (c) 2023.
* Author Peter Placzek (tada5hi)
* For the full copyright and license information,
* view the LICENSE file that was distributed with this source code.
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.isStringArray = void 0;
function isStringArray(input) {
if (!Array.isArray(input)) {
return false;
}
for (let i = 0; i < input.length; i++) {
if (typeof input[i] !== 'string') {
return false;
}
}
return true;
}
exports.isStringArray = isStringArray;
//# sourceMappingURL=array.js.map