function allIndexOf(str, toSearch) {
	const indices = [];
	for (let pos = str.indexOf(toSearch); pos !== -1; pos = str.indexOf(toSearch, pos + 1)) {
		indices.push(pos);
	}
	return indices;
}
/**
 * This function allow to return all the indexof string of a given string
 * @param str string to search in
 * @param toSearch value to search
 */
This function allow to return all the indexof string of a given string
@param str string to search in
@param toSearch value to search
This function allow to return all the indexof string of a given string @param str string to search in @param toSearch value to search
function allIndexOf(str, toSearch) {
	const indices = [];
	for (let pos = str.indexOf(toSearch); pos !== -1; pos = str.indexOf(toSearch, pos + 1)) {
		indices.push(pos);
	}
	return indices;
}
function allIndexOf ( str , toSearch ) { const indices = [ ] ; for ( let pos = str . indexOf ( toSearch ) ; pos !== - 1 ; pos = str . indexOf ( toSearch , pos + 1 ) ) { indices . push ( pos ) ; } return indices ; }
This function allow to return all the indexof string of a given string
 @param str string to search in
 @param toSearch value to search
This function allow to return all the indexof string of a given string @param str string to search in @param toSearch value to search