removeBeforeRemoves the part of the input string before the specified target.
input ( string ): The input string.target ( string | number ): The index or substring before which to remove the content.string ): A new string with the content before the target removed.