Skip to content

function_startsWith

Wesley de Groot edited this page Jul 31, 2018 · 37 revisions
                     _    _____ 
                    | |  / ____|
                    | |  | (___ 
                _   | |  \___  \
 ______    _   | |__| |  ____) |
|______|  (_)   \____/  |______/
                    v1.0.0 Final

Function startsWith

_.startsWith(str, pattern)



startsWith does a string starts With the thing?


🌍 Universal function

This function is for the Command Line Interface and Websites!


Parameter list

Type @var Description Required
object [object] Wrapper Optional
string str the string Required
string pattern the pattern Required

Example:

_.startsWith('hi, i am wesley', 'hi')


Returns:

bool




Back to function list
Clone this wiki locally