UNPKG

@stellar/stellar-sdk

Version:

A library for working with the Stellar network, including communication with the Horizon and Soroban RPC servers.

12 lines (10 loc) 267 B
const trimEnd = (input, char) => { const isNumber = typeof input === "number"; let str = String(input); while (str.endsWith(char)) { str = str.slice(0, -1); } return isNumber ? Number(str) : str; }; export { trimEnd }; //# sourceMappingURL=util.js.map