UNPKG

@genexus/web-standard-functions

Version:

GeneXus JavaScript standard functions library for web generators

12 lines 349 B
/** * 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 */ export const asc = (str) => { if (Array.from(str).length === 0) { return 0; } return str.charCodeAt(0); }; //# sourceMappingURL=asc.js.map