repo.or.cz
/
openemr.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
refactor(ccdaservice): extract and test safeTrim function (#6788)
[openemr.git]
/
ccdaservice
/
utils
/
safe-trim
/
safe-trim.js
blob
ec92518553f8e7be82c64cb09779d2450bfcb23e
1
'use strict';
2
3
function safeTrim(input) {
4
return typeof input === 'string'
5
? input.trim()
6
: input;
7
}
8
9
exports.safeTrim = safeTrim;