site.js 593 B

1234567891011121314151617
  1. // Please see documentation at https://docs.microsoft.com/aspnet/core/client-side/bundling-and-minification
  2. // for details on configuring this project to bundle and minify static web assets.
  3. // Write your JavaScript code.
  4. // First, checks if it isn't implemented yet.
  5. if (!String.prototype.format) {
  6. String.prototype.format = function () {
  7. var args = arguments;
  8. return this.replace(/{(\d+)}/g, function (match, number) {
  9. return typeof args[number] != 'undefined'
  10. ? args[number]
  11. : match
  12. ;
  13. });
  14. };
  15. }