Tuesday, 13 August 2019

C# TrimEnd() equivalent in javascript

I have a statement like



bicCode.ToUpper().TrimEnd('X');


I want to rewrite this in javascript




response.data.toUpperCase().??


How to write trimend function in javascript?

No comments:

Post a Comment

php - file_get_contents shows unexpected output while reading a file

I want to output an inline jpg image as a base64 encoded string, however when I do this : $contents = file_get_contents($filename); print &q...