Sign in
apache
/
nifi-fds
/
954e729fbbf531ccabbbc6d1c1c2ea6135b371eb
/
.
/
node_modules
/
underscore.string
/
swapCase.js
blob: 08572629457d9cfab9025ae75ae6c8e2a64e9911 [
file
] [
log
] [
blame
]
var
makeString
=
require
(
'./helper/makeString'
);
module
.
exports
=
function
swapCase
(
str
)
{
return
makeString
(
str
).
replace
(
/\S/
g
,
function
(
c
)
{
return
c
===
c
.
toUpperCase
()
?
c
.
toLowerCase
()
:
c
.
toUpperCase
();
});
};