Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/polkadot/util/mod.ts>stringShorten

Package publishing for deno.land/x/polkadot
Go to Latest
function stringShorten
import { stringShorten } from "https://deno.land/x/polkadot@0.2.14/util/mod.ts";

Examples

import { stringShorten } from 'https://deno.land/x/polkadot@0.2.14/util/mod.ts';

stringShorten('1234567890', 2); // => 12..90

Parameters

value: AnyString
optional
prefixLength = [UNSUPPORTED]

Returns

string