anvil/striker-ui/lib/test_input/testNotBlank.ts

5 lines
151 B
TypeScript
Raw Normal View History

const testNotBlank: (args: MinimalInputTestArgs) => boolean = ({ value }) =>
value ? String(value).length > 0 : false;
export default testNotBlank;