Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

remove white spaces

//Extenion function
fun String.removeWhitespaces() = replace(" ", "")

// Uses
var str = "This is an example text".removeWhitespaces()

println(str)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #remove #white #spaces
ADD COMMENT
Topic
Name
5+3 =