UNPKG
react-select-v1
Version:
latest (1.2.1)
1.2.1
A Select control built with and for ReactJS
github.com/JedWatson/react-select
JedWatson/react-select
react-select-v1
/
lib
/
utils
/
trim.js
10 lines
(8 loc)
•
179 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
'use strict'
;
Object
.
defineProperty
(
exports
,
"__esModule"
, {
value
:
true
});
var
trim =
function
trim
(
str
) {
return
str.
replace
(
/^\s+|\s+$/g
,
''
); };
exports
.
default
= trim;