prefix()
Always ensures that a string starts with a specific substring.
This function is valid in v2.0.0 to v2.24.3. This function has been downloaded 60 times.undefined
or null
will cause a partial function to be returned.str
if it needs to be added.strPrefix
will be prepended to the beginning of it.str
is not given a partial function will be returned which will await the string value of str
. If opt_rgxTester
isn't given, the str
will be returned and it will be prefixed with strPrefix
if it isn't already at the beginning of it. If opt_rgxTester
is given and str
tests negative against it str
prefixed with strPrefix
will be returned. Otherwise str
will be returned.