Docs (4.0.0)
class LazyString constructor

new LazyString

Creates a new lazily evaluated string instance.

constructor(get?: () => string)

Notes

  • This method is used by strf(), bound.strf(), and other methods. Typically, you don’t need to call this constructor yourself.

Parameters

  • get — A function that returns the embedded string value

Related

  • class LazyStringAn object that encapsulates a string, evaluated only when needed.