BlackDice/b3-chief

View on GitHub
src/types/CamelCase.js

Summary

Maintainability
A
0 mins
Test Coverage
import t from 'tcomb'

const rx = /[A-Z][A-Za-z]+/

export default t.refinement(t.String, (value) => rx.test(value), 'CamelCase')