Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "truncate"

Index

Variables

Variables

Const truncate

truncate: function = memoizeJ((n: number, suffix = "") => (x) =>x.length > n ? x.substr(0, n - suffix.length) + suffix : x)

Type declaration

    • (n: number, suffix?: string): Stringer<string>
    • Parameters

      • n: number
      • Optional suffix: string

      Returns Stringer<string>

Generated using TypeDoc