UNPKG

@valkyriestudios/validator

Version:

A lightweight configurable javascript validator

10 lines (9 loc) 272 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.vLiteral = vLiteral; exports.default = vLiteral; function vLiteral(val, literal) { return typeof val === 'string' && typeof literal === 'string' && val === literal; }