UNPKG
l7hammerjs
Version:
latest (0.0.8)
0.0.8
0.0.7
0.0.6
0.0.5
0.0.4
0.0.3
0.0.2
0.0.1
A javascript library for multi-touch gestures
github.com/hammerjs/hammer.js
hammerjs/hammer.js
l7hammerjs
/
src
/
utils
/
in-str.js
11 lines
(10 loc)
•
198 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
/** *
@private
* small indexOf wrapper *
@param
{
String
}
str
*
@param
{
String
}
find
*
@returns
{
Boolean
}
found
*/
export
default
function
inStr
(
str, find
) {
return
str.
indexOf
(find) > -
1
; }