UNPKG

@abaplint/runtime

Version:
16 lines 428 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.reverse = reverse; const types_1 = require("../types"); function reverse(input) { let val = ""; if (typeof input.val === "string") { val = input.val; } else { val = input.val.get(); } val = val.split("").reverse().join(""); return new types_1.String().set(val); } //# sourceMappingURL=reverse.js.map