/**
 * Near-native utilities that should eventually be added to language support.
 */ export class BudgieUtilities { remarks see https see https public static stringReplaceAll ( haystack , needle , replacement ) { let startIndex = 0 ; while ( true ) { const indexOf = haystack . indexOf ( needle , startIndex ) ; if ( indexOf === - 1 ) { return haystack ; } haystack = haystack . substring ( 0 , indexOf ) + replacement + haystack . substring ( indexOf + needle . length ) ; startIndex = indexOf + replacement . length ; } } }