UNPKG

@raphaeldeveloper/whoiam.domain

Version:

Project with domain rules about user authentication.

15 lines (10 loc) 234 B
exports = module.exports = trim; function trim(str){ return str.replace(/^\s*|\s*$/g, ''); } exports.left = function(str){ return str.replace(/^\s*/, ''); }; exports.right = function(str){ return str.replace(/\s*$/, ''); };