//---------------------------------------------------------------------------------------------------- public static bool EndsWith(JsString inputString, JsString value, bool ignoreCase) { if (ignoreCase) { return(inputString.toLowerCase().slice(-value.length) == value.toLowerCase()); } else { return(inputString.slice(-value.length) == value); } }