UNPKG

succulent

Version:

Powerful and easy runtime type checking

12 lines 288 B
import { Schema } from "../schema"; export function oneOf(x) { return new Schema((t) => { for (const value of x) { if (Object.is(t, value)) { return true; } } return false; }); } //# sourceMappingURL=iterables.js.map