How do I actually get the return from splitCamelCase?
-
I am trying to get split a string using splitCamelCase,
but I can't figure out how to return the split strings.Example:
const split = String.splitCamelCase("TwoWords"); Console.print(split[0]);
In the docs it seems to return the the splits to an array:
But this just returns "Object":
-
const s = "TwoWords"; const splitString = s.splitCamelCase(); Console.print(splitString[0]);
You see in the docs that the
splitCamelCase
function doesn't take any parameters. -
@d-healey Oh, there we go!
Thanks, this is all pretty new to me (coding)! -
@VirtualVirgin said in How do I actually get the return from splitCamelCase?:
this is all pretty new to me
You're doing great :)