UNPKG

@inkline/inkline

Version:

Inkline is the Vue.js UI/UX Library built for creating your next design system

12 lines 446 B
import { getValueByPath } from '../../helpers/index.mjs'; export function sameAs(value, options = {}) { if (!options.target) { return false; } const targetSchema = getValueByPath(options.schema(), options.target); if (!targetSchema) { throw new Error(`Could not find target with name '${options.target}' in 'sameAs' validator.`); } return value === targetSchema.value; } //# sourceMappingURL=sameAs.mjs.map