Skip to main content
Module

x/polkadot/mod.ts>util.stringShorten

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

Examples

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

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

Parameters

value: AnyString
optional
prefixLength = [UNSUPPORTED]

Returns

string