refactor(ccdaservice): extract and test safeTrim function (#6788)
[openemr.git] / ccdaservice / utils / safe-trim / safe-trim.js
blobec92518553f8e7be82c64cb09779d2450bfcb23e
1 'use strict';
3 function safeTrim(input) {
4     return typeof input === 'string'
5         ? input.trim()
6         : input;
9 exports.safeTrim = safeTrim;