Documentation

format()

Returns a (lazily) formatted string incorporating the provided values.

format(...args: any[]): DeferredString;

Summary

This method captures the provided values, and returns a new instance that will result in the input string with the values inserted and formatted.

Note
This method is used internally by fmt(), Binding.fmt(), and doesn’t need to be called directly unless an existing instance needs to be formatted using new placeholder values.

Return value

A new DeferredString instance.

Related