function removeFromEnd(original, textToRemove){
return original.substring(0, original.length - textToRemove.length);
}
Created
February 16, 2017 16:28
-
-
Save Ryanb58/7d08e358e0a1dbdf2a7244a6f4ebdc23 to your computer and use it in GitHub Desktop.
Snippets I create that help me with Javascript
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment