UNPKG

@genexus/web-standard-functions

Version:

GeneXus JavaScript standard functions library for web generators

16 lines 460 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.asc = void 0; /** * Returns the ASCII value of the first character in the string * @param {string} str The string to convert to ASCII * @returns The ASCII value of the first character in the string */ const asc = (str) => { if (Array.from(str).length === 0) { return 0; } return str.charCodeAt(0); }; exports.asc = asc; //# sourceMappingURL=asc.js.map