nexxtway/react-rainbow

View on GitHub
src/components/Tree/helpers/isPrintableCharacter.js

Summary

Maintainability
A
35 mins
Test Coverage
export default function isPrintableCharacter(str) {
    if (typeof str !== 'string') return false;
    return str.length === 1 && /\S/.test(str);
}