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

x/polkadot/util/string/shorten.ts>stringShorten

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

Examples

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

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

Parameters

value: AnyString
optional
prefixLength = [UNSUPPORTED]

Returns

string