/
Romenxek
/
Diplom
Обзор
Документация
Войти
/
Romenxek
/
Diplom
Код
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
node_modules/validator/es/lib/util/assertString.js
4 строки
296 B
Roman
Switched to Sequelize ORM v6
09 фев 2026, 15:21
09 фев 2026, 15:21
42a3951
Код
Авторство
О чём код?
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)); }