/
canecpro
/
TProgramming_2025
Обзор
Документация
Войти
/
canecpro
/
TProgramming_2025
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
node_modules/eslint-scope/lib/assert.js
17 строк
464 B
Canecpro17
Initial commit: Combat Arena Simulator project
18 янв 2026, 15:53
18 янв 2026, 15:53
4a0290e
Код
Авторство
О чём код?
/** * @fileoverview Assertion utilities. * @author Nicholas C. Zakas */ /** * Throws an error if the given condition is not truthy. * @param {boolean} condition The condition to check. * @param {string} message The message to include with the error. * @returns {void} * @throws {Error} When the condition is not truthy. */ export function assert(condition, message = "Assertion failed.") { if (!condition) { throw new Error(message); } }