Software: Apache. PHP/8.1.30 uname -a: Linux server1.tuhinhossain.com 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC uid=1002(picotech) gid=1003(picotech) groups=1003(picotech),0(root) Safe-mode: OFF (not secure) /home/picotech/domains/wa.picotech.app/public_html/node_modules/@thi.ng/errors/ drwxr-xr-x |
Viewing file: Select action/file-type: import { defError } from "./deferror.js"; export const OutOfBoundsError = defError(() => "index out of bounds"); export const outOfBounds = (index) => { throw new OutOfBoundsError(index); }; /** * Throws an {@link OutOfBoundsError} if `index` outside the `[min..max)` range. * * @param index - * @param min - * @param max - */ export const ensureIndex = (index, min, max) => (index < min || index >= max) && outOfBounds(index); /** * Throws an {@link OutOfBoundsError} if either `x` or `y` is outside their * respective `[0..max)` range. * * @param x - * @param y - * @param maxX - * @param maxY - */ export const ensureIndex2 = (x, y, maxX, maxY) => (x < 0 || x >= maxX || y < 0 || y >= maxY) && outOfBounds([x, y]); |
:: Command execute :: | |
--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0034 ]-- |