Creates a shape that requires matching the exact value give.
import {exactShape, checkValidShape} from 'object-shape-tester';const myShape = exactShape('a');checkValidShape('a', myShape); // `true`checkValidShape('c', myShape); // `false`// normally passing a string to a shape will simplify the shape.checkValidShape('c', defineShape('a')); // `true` Copy
import {exactShape, checkValidShape} from 'object-shape-tester';const myShape = exactShape('a');checkValidShape('a', myShape); // `true`checkValidShape('c', myShape); // `false`// normally passing a string to a shape will simplify the shape.checkValidShape('c', defineShape('a')); // `true`
Creates a shape that requires matching the exact value give.