Creates a shape that merges multiple objects together.
import {intersectShape, checkValidShape} from 'object-shape-tester';const myShape = intersectShape( { a: '', }, { b: '', },);checkValidShape({a: 'hi', b: 'bye'}, myShape); // `true`checkValidShape({a: 'hi'}, myShape); // `false` Copy
import {intersectShape, checkValidShape} from 'object-shape-tester';const myShape = intersectShape( { a: '', }, { b: '', },);checkValidShape({a: 'hi', b: 'bye'}, myShape); // `true`checkValidShape({a: 'hi'}, myShape); // `false`
Creates a shape that merges multiple objects together.