When I run
:put [:find “ssssss” “w”]result is undefined value I cannot compare to anything. How should I check when :find finds nothing?
:put [:typeof [:find “ssssss” “w”]]
If nothing is found typeof will be “nil”
When I run
:put [:find “ssssss” “w”]result is undefined value I cannot compare to anything. How should I check when :find finds nothing?
:put [:typeof [:find “ssssss” “w”]]
If nothing is found typeof will be “nil”