yt-dlx
Version:
Effortless Audio-Video Downloader And Streamer!
11 lines • 523 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = extractText;
// Suggestion: Add JSDoc comments to the function, explaining its purpose, parameters, and return value. Also, consider adding type definitions for the `textObj` parameter and the return value to improve type safety.
function extractText(textObj) {
return {
runs: textObj?.runs || undefined,
text: textObj?.text || textObj?.runs?.[0]?.text || "",
};
}
//# sourceMappingURL=extractText.js.map