UNPKG

validatorshield

Version:

Universal validation (frontend + backend) with TypeScript. Includes common rules and Sequelize-backed async rules (unique, exists).

7 lines (6 loc) 183 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.same = same; function same(value, ctx, otherField) { return ctx.data[otherField] === value; }