StringExtensions

Source:

Extends the native String class to allow .NET string concatenation style

Example

const rootRequire = require('rpcm-root-require');
rootRequire('/platform-helpers/string-extensions');

const actual = 'The quick brown {0} jumps {1} the {2} dog!'.format('fox', 'over', 'lazy');
console.log(actual);
// logs: The quick brown fox jumps over the lazy dog!