Const
Adds line numbers to a code string for debugging purposes
The code string to add line numbers to
The code string with line numbers prepended to each line
Concatenates multiple ArrayBuffers into a single ArrayBuffer with specified sizes and offsets
Array of ArrayBuffers to concatenate
Array of sizes for each segment
Array of offsets for each segment
Optional
finalSize: numberOptional final size of the resulting buffer
The concatenated ArrayBuffer
Concatenates multiple ArrayBuffers into a single ArrayBuffer with a more structured approach
Configuration object for concatenation
The final size of the resulting buffer
Array of source ArrayBuffers
Array of copy sizes for each source buffer
Array of offsets for each source buffer
The concatenated ArrayBuffer
Downloads an ArrayBuffer as a file in the browser
The name of the file to download
The ArrayBuffer data to download
Downloads a TypedArray as a file in the browser
The name of the file to download
The TypedArray data to download
Fills a template string with variables using template literals
The template string with placeholders
The variables to substitute into the template
The filled template string
Detects if the current environment is an iOS device (iPod, iPad, iPhone)
True if running on an iOS device, false otherwise
Detects if the current environment is a mobile device (iPod, iPad, iPhone, Android)
True if running on a mobile device, false otherwise
Detects if the current environment is a mobile VR device (Oculus Browser, Samsung Browser VR, etc.)
True if running on a mobile VR device, false otherwise
Detects if the current environment is Node.js
True if running in Node.js environment, false otherwise
Checks if a value is a plain object (not an array or other object types)
The value to check
True if the value is a plain object, false otherwise
Detects if the current browser is Safari (excluding Chrome-based browsers)
True if running on Safari browser, false otherwise
Prevents the default behavior of an event only on desktop devices
The event to potentially prevent default behavior for
Collection of miscellaneous utility functions for various common operations including device detection, array buffer manipulation, conditional execution, and file operations