Files
opencrm/backend/node_modules/validator/es/lib/util/assertString.js
T
Stefan Hacker e209e9bbca first commit
2026-01-29 01:16:54 +01:00

4 lines
296 B
JavaScript

export default function assertString(input) {
if (input === undefined || input === null) throw new TypeError("Expected a string but received a ".concat(input));
if (input.constructor.name !== 'String') throw new TypeError("Expected a string but received a ".concat(input.constructor.name));
}