Options
All
  • Public
  • Public/Protected
  • All
Menu

string-template-format-tostring — Reference

String Template Format: toString

String template literal tag that converts any value that has .toString() method to strings

Usage

import str from 'string-template-format-tostring'
console.log(str`string: ${'abc'}; number: ${123}; function: ${Function};`)

should print:

string: abc; number: 123; function: function Function() { [native code] };

License

MIT © Hoàng Văn Khải

Generated using TypeDoc