D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
etb1lp46s9ed
/
public_html
/
wabulk.whatzi.online
/
node_modules
/
eslint-scope
/
lib
/
Filename :
assert.js
back
Copy
/** * @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); } }