export class StringHelper { public static format ( value , ... args ) { let targetValue = value ; if ( args ) args . forEach ( ( match , index ) => targetValue = StringHelper . replaceArg ( index , targetValue , match ) ) ; return targetValue ; } private static replaceArg ( match , target , value ) { return target . replace ( new RegExp ( `\\\{${ match }\\\}` , 'g' ) , value ) ; } }