Closed Olian04 closed 3 years ago
Ex:
R.Object.Like({ foo: { bar: R.Number }, // R.Object.Like({ bar: R.Number }) bar: [ R.Number ], // R.Array.Like([ R.Number ]) biz: 1, // R.Number.Exact(1) boz: 'a', // R.String.Exact('a') baz: true, // R.Boolean.True });
Should work everywhere where a Constraint could be used. In object, arrays, "and", "or"
R.Object.Like({ bar: [ 1, 'yes', R.Function ], // R.Array.Like([ R.Number.Exact(1), R.String.Exact('yes'), R.Function ]) });
Ex:
Should work everywhere where a Constraint could be used. In object, arrays, "and", "or"