JSFiddle - React, Tailwind, and code Playground
by realhunts
JavaScript
var word ="dan te";
var m = word.split("")
if(m.includes(" ")){
m.splice(m.indexOf(" "), 1)
}
console.log(m)
by realhunts
var word ="dan te";
var m = word.split("")
if(m.includes(" ")){
m.splice(m.indexOf(" "), 1)
}
console.log(m)