Spaces:
Sleeping
Sleeping
Download gui/frontend/node_modules/eslint-scope/lib/assert.js from BrianLov/guiBackend: direct link, hf CLI and curl.
- Browser
- Download file 452 Bytes
-
https://huggingface.co/spaces/BrianLov/guiBackend/resolve/main/gui/frontend/node_modules/eslint-scope/lib/assert.js
- Command line
-
hf download hf://spaces/BrianLov/guiBackend/gui/frontend/node_modules/eslint-scope/lib/assert.js
-
curl -L -o assert.js https://huggingface.co/spaces/BrianLov/guiBackend/resolve/main/gui/frontend/node_modules/eslint-scope/lib/assert.js
452 Bytes
| /** | |
| * @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); | |
| } | |
| } | |