Returns a string that concat the given prefix and text
Optional
The text to check
The prefix to prepend
a string that concat the given prefix and text
David Hsing
prependIfMissing('bar', 'foo'); // 'foobar'prependIfMissing('foobar', 'foo'); // 'foobar' Copy
prependIfMissing('bar', 'foo'); // 'foobar'prependIfMissing('foobar', 'foo'); // 'foobar'
Returns a string that concat the given prefix and text