UNPKG

@okxweb3/coin-stellar

Version:

@okxweb3/coin-stellar is a Stellar SDK for building Web3 wallets and applications. It supports Stellar and PI blockchains, enabling private key management, address generation, transaction signing, trustline creation, and asset transfers

13 lines 389 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.trimEnd = void 0; 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