Skip to content

function_includes

Wesley de Groot edited this page Oct 30, 2015 · 37 revisions
            	     _    _____ 
        	        | |  / ____|
    	            | |  | (___ 
	            _   | |  \___  \
 ______    _   | |__| |  ____) |
|______|  (_)   \____/  |______/
                    v0.0.7 Final

Function includes

_.includes(str, pattern)



includes does a string includes the thing?

Parameter list

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

Example:

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


Returns:

bool




[Back to function list](https://github.com/wesdegroot/_.js/wiki/Function%20List)
Clone this wiki locally