Preview: assertString.js
Size: 469 B
/proc/thread-self/root/home/byroehnu/.trash/node_modules11/validator/lib/util/assertString.js
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = assertString;
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));
}
module.exports = exports.default;
module.exports.default = exports.default;
Directory Contents
Dirs: 0 × Files: 10