UNPKG

@stellar/stellar-sdk

Version:

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

14 lines (11 loc) 289 B
'use strict'; 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; }; exports.trimEnd = trimEnd; //# sourceMappingURL=util.js.map