I have the following function:
var checkCode=function(codeString){
var ifs=codeString.split("if");
...
}
Is there a way to check if the code fails, as in does not find any if
strings to split from in the codeString
that is input to the function?
If the length of the result is 1, then the split didn't split.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With