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
/
split-str.js
11 lines
(9 loc)
•
177 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
/** *
@private
* split string on whitespace *
@param
{
String
}
str
*
@returns
{
Array
}
words
*/
export
default
function
splitStr
(
str
) {
return
str.
trim
().
split
(
/\s+/g
); }