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

x/polkadot/util/bundle.ts>stringShorten

Package publishing for deno.land/x/polkadot
Latest
function stringShorten
import { stringShorten } from "https://deno.land/x/polkadot@0.2.45/util/bundle.ts";

Examples

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

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

Parameters

value: AnyString
optional
prefixLength = [UNSUPPORTED]

Returns

string