Creates a shape that requires a non-empty string.
import {nonEmptyStringShape, checkValidShape} from 'object-shape-tester';const myShape = nonEmptyStringShape();checkValidShape(' ', myShape); // `true`checkValidShape('', myShape); // `false` Copy
import {nonEmptyStringShape, checkValidShape} from 'object-shape-tester';const myShape = nonEmptyStringShape();checkValidShape(' ', myShape); // `true`checkValidShape('', myShape); // `false`
Creates a shape that requires a non-empty string.