projects
/
yaffs-website
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
08572629457d9cfab9025ae75ae6c8e2a64e9911
[yaffs-website]
/
swapCase.js
1
var makeString = require('./helper/makeString');
2
3
module.exports = function swapCase(str) {
4
return makeString(str).replace(/\S/g, function(c) {
5
return c === c.toUpperCase() ? c.toLowerCase() : c.toUpperCase();
6
});
7
};