getBefore = (strFn, token) => () => {
	const str = strFn();
	const idx = str.lastIndexOf(token);
	return idx < 0 ? "" : str.slice(0, idx);
}
Returns a function that returns the part of the string before the token
@param {ReturnStringCallback} strFn the function to get the string
@param {string} token the token to search for
@returns {ReturnStringCallback} a function that returns the part of the string before the token