Method catalog
The full catalog is generated from prompts.json. Every wrapper exposed
by neuro-ts is listed below, grouped by built-in. Click through to the
full method catalog for full type signatures.
array (40)
neuro.array.atneuro.array.concatneuro.array.copyWithinneuro.array.entriesneuro.array.everyneuro.array.fillneuro.array.filterneuro.array.findneuro.array.findIndexneuro.array.findLastneuro.array.findLastIndexneuro.array.flatneuro.array.flatMapneuro.array.forEachneuro.array.fromneuro.array.fromAsyncneuro.array.includesneuro.array.indexOfneuro.array.isArrayneuro.array.joinneuro.array.keysneuro.array.lastIndexOfneuro.array.mapneuro.array.ofneuro.array.popneuro.array.pushneuro.array.reduceneuro.array.reduceRightneuro.array.reverseneuro.array.shiftneuro.array.sliceneuro.array.someneuro.array.sortneuro.array.spliceneuro.array.toReversedneuro.array.toSortedneuro.array.toSplicedneuro.array.unshiftneuro.array.valuesneuro.array.with
arrayBuffer (5)
neuro.arrayBuffer.isViewneuro.arrayBuffer.resizeneuro.arrayBuffer.sliceneuro.arrayBuffer.transferneuro.arrayBuffer.transferToFixedLength
atomics (14)
neuro.atomics.addneuro.atomics.andneuro.atomics.compareExchangeneuro.atomics.exchangeneuro.atomics.isLockFreeneuro.atomics.loadneuro.atomics.notifyneuro.atomics.orneuro.atomics.pauseneuro.atomics.storeneuro.atomics.subneuro.atomics.waitneuro.atomics.waitAsyncneuro.atomics.xor
bigInt (2)
neuro.bigInt.asIntNneuro.bigInt.asUintN
bigInt64Array (31)
neuro.bigInt64Array.atneuro.bigInt64Array.copyWithinneuro.bigInt64Array.entriesneuro.bigInt64Array.everyneuro.bigInt64Array.fillneuro.bigInt64Array.filterneuro.bigInt64Array.findneuro.bigInt64Array.findIndexneuro.bigInt64Array.findLastneuro.bigInt64Array.findLastIndexneuro.bigInt64Array.forEachneuro.bigInt64Array.fromneuro.bigInt64Array.includesneuro.bigInt64Array.indexOfneuro.bigInt64Array.joinneuro.bigInt64Array.keysneuro.bigInt64Array.lastIndexOfneuro.bigInt64Array.mapneuro.bigInt64Array.ofneuro.bigInt64Array.reduceneuro.bigInt64Array.reduceRightneuro.bigInt64Array.reverseneuro.bigInt64Array.setneuro.bigInt64Array.sliceneuro.bigInt64Array.someneuro.bigInt64Array.sortneuro.bigInt64Array.subarrayneuro.bigInt64Array.toReversedneuro.bigInt64Array.toSortedneuro.bigInt64Array.valuesneuro.bigInt64Array.with
bigUint64Array (31)
neuro.bigUint64Array.atneuro.bigUint64Array.copyWithinneuro.bigUint64Array.entriesneuro.bigUint64Array.everyneuro.bigUint64Array.fillneuro.bigUint64Array.filterneuro.bigUint64Array.findneuro.bigUint64Array.findIndexneuro.bigUint64Array.findLastneuro.bigUint64Array.findLastIndexneuro.bigUint64Array.forEachneuro.bigUint64Array.fromneuro.bigUint64Array.includesneuro.bigUint64Array.indexOfneuro.bigUint64Array.joinneuro.bigUint64Array.keysneuro.bigUint64Array.lastIndexOfneuro.bigUint64Array.mapneuro.bigUint64Array.ofneuro.bigUint64Array.reduceneuro.bigUint64Array.reduceRightneuro.bigUint64Array.reverseneuro.bigUint64Array.setneuro.bigUint64Array.sliceneuro.bigUint64Array.someneuro.bigUint64Array.sortneuro.bigUint64Array.subarrayneuro.bigUint64Array.toReversedneuro.bigUint64Array.toSortedneuro.bigUint64Array.valuesneuro.bigUint64Array.with
dataView (22)
neuro.dataView.getBigInt64neuro.dataView.getBigUint64neuro.dataView.getFloat16neuro.dataView.getFloat32neuro.dataView.getFloat64neuro.dataView.getInt16neuro.dataView.getInt32neuro.dataView.getInt8neuro.dataView.getUint16neuro.dataView.getUint32neuro.dataView.getUint8neuro.dataView.setBigInt64neuro.dataView.setBigUint64neuro.dataView.setFloat16neuro.dataView.setFloat32neuro.dataView.setFloat64neuro.dataView.setInt16neuro.dataView.setInt32neuro.dataView.setInt8neuro.dataView.setUint16neuro.dataView.setUint32neuro.dataView.setUint8
date (43)
neuro.date.UTCneuro.date.getDateneuro.date.getDayneuro.date.getFullYearneuro.date.getHoursneuro.date.getMillisecondsneuro.date.getMinutesneuro.date.getMonthneuro.date.getSecondsneuro.date.getTimeneuro.date.getTimezoneOffsetneuro.date.getUTCDateneuro.date.getUTCDayneuro.date.getUTCFullYearneuro.date.getUTCHoursneuro.date.getUTCMillisecondsneuro.date.getUTCMinutesneuro.date.getUTCMonthneuro.date.getUTCSecondsneuro.date.nowneuro.date.parseneuro.date.setDateneuro.date.setFullYearneuro.date.setHoursneuro.date.setMillisecondsneuro.date.setMinutesneuro.date.setMonthneuro.date.setSecondsneuro.date.setTimeneuro.date.setUTCDateneuro.date.setUTCFullYearneuro.date.setUTCHoursneuro.date.setUTCMillisecondsneuro.date.setUTCMinutesneuro.date.setUTCMonthneuro.date.setUTCSecondsneuro.date.toDateStringneuro.date.toISOStringneuro.date.toJSONneuro.date.toLocaleDateStringneuro.date.toLocaleTimeStringneuro.date.toTimeStringneuro.date.toUTCString
error (1)
neuro.error.isError
float32Array (31)
neuro.float32Array.atneuro.float32Array.copyWithinneuro.float32Array.entriesneuro.float32Array.everyneuro.float32Array.fillneuro.float32Array.filterneuro.float32Array.findneuro.float32Array.findIndexneuro.float32Array.findLastneuro.float32Array.findLastIndexneuro.float32Array.forEachneuro.float32Array.fromneuro.float32Array.includesneuro.float32Array.indexOfneuro.float32Array.joinneuro.float32Array.keysneuro.float32Array.lastIndexOfneuro.float32Array.mapneuro.float32Array.ofneuro.float32Array.reduceneuro.float32Array.reduceRightneuro.float32Array.reverseneuro.float32Array.setneuro.float32Array.sliceneuro.float32Array.someneuro.float32Array.sortneuro.float32Array.subarrayneuro.float32Array.toReversedneuro.float32Array.toSortedneuro.float32Array.valuesneuro.float32Array.with
float64Array (31)
neuro.float64Array.atneuro.float64Array.copyWithinneuro.float64Array.entriesneuro.float64Array.everyneuro.float64Array.fillneuro.float64Array.filterneuro.float64Array.findneuro.float64Array.findIndexneuro.float64Array.findLastneuro.float64Array.findLastIndexneuro.float64Array.forEachneuro.float64Array.fromneuro.float64Array.includesneuro.float64Array.indexOfneuro.float64Array.joinneuro.float64Array.keysneuro.float64Array.lastIndexOfneuro.float64Array.mapneuro.float64Array.ofneuro.float64Array.reduceneuro.float64Array.reduceRightneuro.float64Array.reverseneuro.float64Array.setneuro.float64Array.sliceneuro.float64Array.someneuro.float64Array.sortneuro.float64Array.subarrayneuro.float64Array.toReversedneuro.float64Array.toSortedneuro.float64Array.valuesneuro.float64Array.with
globals (11)
neuro.atobneuro.btoaneuro.decodeURIneuro.decodeURIComponentneuro.encodeURIneuro.encodeURIComponentneuro.isFiniteneuro.isNaNneuro.parseFloatneuro.parseIntneuro.structuredClone
int16Array (31)
neuro.int16Array.atneuro.int16Array.copyWithinneuro.int16Array.entriesneuro.int16Array.everyneuro.int16Array.fillneuro.int16Array.filterneuro.int16Array.findneuro.int16Array.findIndexneuro.int16Array.findLastneuro.int16Array.findLastIndexneuro.int16Array.forEachneuro.int16Array.fromneuro.int16Array.includesneuro.int16Array.indexOfneuro.int16Array.joinneuro.int16Array.keysneuro.int16Array.lastIndexOfneuro.int16Array.mapneuro.int16Array.ofneuro.int16Array.reduceneuro.int16Array.reduceRightneuro.int16Array.reverseneuro.int16Array.setneuro.int16Array.sliceneuro.int16Array.someneuro.int16Array.sortneuro.int16Array.subarrayneuro.int16Array.toReversedneuro.int16Array.toSortedneuro.int16Array.valuesneuro.int16Array.with
int32Array (31)
neuro.int32Array.atneuro.int32Array.copyWithinneuro.int32Array.entriesneuro.int32Array.everyneuro.int32Array.fillneuro.int32Array.filterneuro.int32Array.findneuro.int32Array.findIndexneuro.int32Array.findLastneuro.int32Array.findLastIndexneuro.int32Array.forEachneuro.int32Array.fromneuro.int32Array.includesneuro.int32Array.indexOfneuro.int32Array.joinneuro.int32Array.keysneuro.int32Array.lastIndexOfneuro.int32Array.mapneuro.int32Array.ofneuro.int32Array.reduceneuro.int32Array.reduceRightneuro.int32Array.reverseneuro.int32Array.setneuro.int32Array.sliceneuro.int32Array.someneuro.int32Array.sortneuro.int32Array.subarrayneuro.int32Array.toReversedneuro.int32Array.toSortedneuro.int32Array.valuesneuro.int32Array.with
int8Array (31)
neuro.int8Array.atneuro.int8Array.copyWithinneuro.int8Array.entriesneuro.int8Array.everyneuro.int8Array.fillneuro.int8Array.filterneuro.int8Array.findneuro.int8Array.findIndexneuro.int8Array.findLastneuro.int8Array.findLastIndexneuro.int8Array.forEachneuro.int8Array.fromneuro.int8Array.includesneuro.int8Array.indexOfneuro.int8Array.joinneuro.int8Array.keysneuro.int8Array.lastIndexOfneuro.int8Array.mapneuro.int8Array.ofneuro.int8Array.reduceneuro.int8Array.reduceRightneuro.int8Array.reverseneuro.int8Array.setneuro.int8Array.sliceneuro.int8Array.someneuro.int8Array.sortneuro.int8Array.subarrayneuro.int8Array.toReversedneuro.int8Array.toSortedneuro.int8Array.valuesneuro.int8Array.with
iterator (15)
neuro.iterator.dropneuro.iterator.everyneuro.iterator.filterneuro.iterator.findneuro.iterator.flatMapneuro.iterator.forEachneuro.iterator.fromneuro.iterator.mapneuro.iterator.nextneuro.iterator.reduceneuro.iterator.returnneuro.iterator.someneuro.iterator.takeneuro.iterator.throwneuro.iterator.toArray
json (2)
neuro.json.parseneuro.json.stringify
map (12)
neuro.map.clearneuro.map.deleteneuro.map.entriesneuro.map.forEachneuro.map.getneuro.map.getOrInsertneuro.map.getOrInsertComputedneuro.map.groupByneuro.map.hasneuro.map.keysneuro.map.setneuro.map.values
math (36)
neuro.math.absneuro.math.acosneuro.math.acoshneuro.math.asinneuro.math.asinhneuro.math.atanneuro.math.atan2neuro.math.atanhneuro.math.cbrtneuro.math.ceilneuro.math.clz32neuro.math.cosneuro.math.coshneuro.math.expneuro.math.expm1neuro.math.f16roundneuro.math.floorneuro.math.froundneuro.math.hypotneuro.math.imulneuro.math.logneuro.math.log10neuro.math.log1pneuro.math.log2neuro.math.maxneuro.math.minneuro.math.powneuro.math.randomneuro.math.roundneuro.math.signneuro.math.sinneuro.math.sinhneuro.math.sqrtneuro.math.tanneuro.math.tanhneuro.math.trunc
number (9)
neuro.number.isFiniteneuro.number.isIntegerneuro.number.isNaNneuro.number.isSafeIntegerneuro.number.parseFloatneuro.number.parseIntneuro.number.toExponentialneuro.number.toFixedneuro.number.toPrecision
object (23)
neuro.object.assignneuro.object.createneuro.object.definePropertiesneuro.object.definePropertyneuro.object.entriesneuro.object.freezeneuro.object.fromEntriesneuro.object.getOwnPropertyDescriptorneuro.object.getOwnPropertyDescriptorsneuro.object.getOwnPropertyNamesneuro.object.getOwnPropertySymbolsneuro.object.getPrototypeOfneuro.object.groupByneuro.object.hasOwnneuro.object.isneuro.object.isExtensibleneuro.object.isFrozenneuro.object.isSealedneuro.object.keysneuro.object.preventExtensionsneuro.object.sealneuro.object.setPrototypeOfneuro.object.values
promise (11)
neuro.promise.allneuro.promise.allSettledneuro.promise.anyneuro.promise.catchneuro.promise.finallyneuro.promise.raceneuro.promise.rejectneuro.promise.resolveneuro.promise.thenneuro.promise.tryneuro.promise.withResolvers
regExp (3)
neuro.regExp.compileneuro.regExp.execneuro.regExp.test
set (15)
neuro.set.addneuro.set.clearneuro.set.deleteneuro.set.differenceneuro.set.entriesneuro.set.forEachneuro.set.hasneuro.set.intersectionneuro.set.isDisjointFromneuro.set.isSubsetOfneuro.set.isSupersetOfneuro.set.keysneuro.set.symmetricDifferenceneuro.set.unionneuro.set.values
string (51)
neuro.string.anchorneuro.string.atneuro.string.bigneuro.string.blinkneuro.string.boldneuro.string.charAtneuro.string.charCodeAtneuro.string.codePointAtneuro.string.concatneuro.string.endsWithneuro.string.fixedneuro.string.fontcolorneuro.string.fontsizeneuro.string.fromCharCodeneuro.string.fromCodePointneuro.string.includesneuro.string.indexOfneuro.string.isWellFormedneuro.string.italicsneuro.string.lastIndexOfneuro.string.linkneuro.string.localeCompareneuro.string.matchneuro.string.matchAllneuro.string.normalizeneuro.string.padEndneuro.string.padStartneuro.string.rawneuro.string.repeatneuro.string.replaceneuro.string.replaceAllneuro.string.searchneuro.string.sliceneuro.string.smallneuro.string.splitneuro.string.startsWithneuro.string.strikeneuro.string.subneuro.string.substrneuro.string.substringneuro.string.supneuro.string.toLocaleLowerCaseneuro.string.toLocaleUpperCaseneuro.string.toLowerCaseneuro.string.toUpperCaseneuro.string.toWellFormedneuro.string.trimneuro.string.trimEndneuro.string.trimLeftneuro.string.trimRightneuro.string.trimStart
symbol (2)
neuro.symbol.forneuro.symbol.keyFor
uint16Array (31)
neuro.uint16Array.atneuro.uint16Array.copyWithinneuro.uint16Array.entriesneuro.uint16Array.everyneuro.uint16Array.fillneuro.uint16Array.filterneuro.uint16Array.findneuro.uint16Array.findIndexneuro.uint16Array.findLastneuro.uint16Array.findLastIndexneuro.uint16Array.forEachneuro.uint16Array.fromneuro.uint16Array.includesneuro.uint16Array.indexOfneuro.uint16Array.joinneuro.uint16Array.keysneuro.uint16Array.lastIndexOfneuro.uint16Array.mapneuro.uint16Array.ofneuro.uint16Array.reduceneuro.uint16Array.reduceRightneuro.uint16Array.reverseneuro.uint16Array.setneuro.uint16Array.sliceneuro.uint16Array.someneuro.uint16Array.sortneuro.uint16Array.subarrayneuro.uint16Array.toReversedneuro.uint16Array.toSortedneuro.uint16Array.valuesneuro.uint16Array.with
uint32Array (31)
neuro.uint32Array.atneuro.uint32Array.copyWithinneuro.uint32Array.entriesneuro.uint32Array.everyneuro.uint32Array.fillneuro.uint32Array.filterneuro.uint32Array.findneuro.uint32Array.findIndexneuro.uint32Array.findLastneuro.uint32Array.findLastIndexneuro.uint32Array.forEachneuro.uint32Array.fromneuro.uint32Array.includesneuro.uint32Array.indexOfneuro.uint32Array.joinneuro.uint32Array.keysneuro.uint32Array.lastIndexOfneuro.uint32Array.mapneuro.uint32Array.ofneuro.uint32Array.reduceneuro.uint32Array.reduceRightneuro.uint32Array.reverseneuro.uint32Array.setneuro.uint32Array.sliceneuro.uint32Array.someneuro.uint32Array.sortneuro.uint32Array.subarrayneuro.uint32Array.toReversedneuro.uint32Array.toSortedneuro.uint32Array.valuesneuro.uint32Array.with
uint8Array (37)
neuro.uint8Array.atneuro.uint8Array.copyWithinneuro.uint8Array.entriesneuro.uint8Array.everyneuro.uint8Array.fillneuro.uint8Array.filterneuro.uint8Array.findneuro.uint8Array.findIndexneuro.uint8Array.findLastneuro.uint8Array.findLastIndexneuro.uint8Array.forEachneuro.uint8Array.fromneuro.uint8Array.fromBase64neuro.uint8Array.fromHexneuro.uint8Array.includesneuro.uint8Array.indexOfneuro.uint8Array.joinneuro.uint8Array.keysneuro.uint8Array.lastIndexOfneuro.uint8Array.mapneuro.uint8Array.ofneuro.uint8Array.reduceneuro.uint8Array.reduceRightneuro.uint8Array.reverseneuro.uint8Array.setneuro.uint8Array.setFromBase64neuro.uint8Array.setFromHexneuro.uint8Array.sliceneuro.uint8Array.someneuro.uint8Array.sortneuro.uint8Array.subarrayneuro.uint8Array.toBase64neuro.uint8Array.toHexneuro.uint8Array.toReversedneuro.uint8Array.toSortedneuro.uint8Array.valuesneuro.uint8Array.with
uint8ClampedArray (31)
neuro.uint8ClampedArray.atneuro.uint8ClampedArray.copyWithinneuro.uint8ClampedArray.entriesneuro.uint8ClampedArray.everyneuro.uint8ClampedArray.fillneuro.uint8ClampedArray.filterneuro.uint8ClampedArray.findneuro.uint8ClampedArray.findIndexneuro.uint8ClampedArray.findLastneuro.uint8ClampedArray.findLastIndexneuro.uint8ClampedArray.forEachneuro.uint8ClampedArray.fromneuro.uint8ClampedArray.includesneuro.uint8ClampedArray.indexOfneuro.uint8ClampedArray.joinneuro.uint8ClampedArray.keysneuro.uint8ClampedArray.lastIndexOfneuro.uint8ClampedArray.mapneuro.uint8ClampedArray.ofneuro.uint8ClampedArray.reduceneuro.uint8ClampedArray.reduceRightneuro.uint8ClampedArray.reverseneuro.uint8ClampedArray.setneuro.uint8ClampedArray.sliceneuro.uint8ClampedArray.someneuro.uint8ClampedArray.sortneuro.uint8ClampedArray.subarrayneuro.uint8ClampedArray.toReversedneuro.uint8ClampedArray.toSortedneuro.uint8ClampedArray.valuesneuro.uint8ClampedArray.with
weakMap (6)
neuro.weakMap.deleteneuro.weakMap.getneuro.weakMap.getOrInsertneuro.weakMap.getOrInsertComputedneuro.weakMap.hasneuro.weakMap.set
weakSet (3)
neuro.weakSet.addneuro.weakSet.deleteneuro.weakSet.has
Sample prompts by group
Section titled “Sample prompts by group”One representative prompt per group showing the kind of instruction you
can pass to steer the LLM. These are the curated prompts shipped in
prompts.json — the same text that appears in each method’s docs page.
Array.prototype.filterYou are simulating the JavaScript built-in `Array.prototype.filter`.
## Original signature(s)
Overload 1: (predicate?: (value: T, index: number, array: T[]) => boolean, thisArg?: any) => S[]
Overload 2: (predicate?: (value: T, index: number, array: T[]) => unknown, thisArg?: any) => T[]
## JSDoc
Returns the elements of an array that meet the condition specified in a callback function.
## How to respond
- Behave EXACTLY as the original `filter` would, but use the user's intent to choose any callback / comparator / transform logic that the original would normally accept as an argument.
- Strictly preserve the original return type and shape.
- Output ONLY the JSON-encoded return value of the function call.
- Do NOT include explanations, prose, comments, or markdown fences.
- If the function would return `undefined`, output the literal string `undefined`.
- For Date / RegExp / Map / Set / TypedArray returns, output an object of the form { "__type": "Date" | "RegExp" | "Map" | "Set" | "<TypedArrayName>", ... } so the SDK can rehydrate it.string
Section titled “string”String.prototype.replaceYou are simulating the JavaScript built-in `String.prototype.replace`.
## Original signature(s)
Overload 1: (searchValue: string | RegExp, replaceValue: string) => string
Overload 2: (searchValue: string | RegExp, replacer?: (substring: string, ...args: any[]) => string) => string
Overload 3: (searchValue: { [Symbol.replace](string: string, replaceValue: string): string; }, replaceValue: string) => string
Overload 4: (searchValue?: { [Symbol.replace](string: string, replacer: (substring: string, ...args: any[]) => string): string; }, replacer?: (substring: string, ...args: any[]) => string) => string
## JSDoc
Replaces text in a string, using a regular expression or search string.
## How to respond
- Behave EXACTLY as the original `replace` would, but use the user's intent to choose any callback / comparator / transform logic that the original would normally accept as an argument.
- Strictly preserve the original return type and shape.
- Output ONLY the JSON-encoded return value of the function call.
- Do NOT include explanations, prose, comments, or markdown fences.
- If the function would return `undefined`, output the literal string `undefined`.
- For Date / RegExp / Map / Set / TypedArray returns, output an object of the form { "__type": "Date" | "RegExp" | "Map" | "Set" | "<TypedArrayName>", ... } so the SDK can rehydrate it.Math.randomYou are simulating the JavaScript built-in `Math.random`.
## Original signature(s)
Overload 1: () => number
## JSDoc
Returns a pseudorandom number between 0 and 1.
## How to respond
- Behave EXACTLY as the original `random` would, but use the user's intent to choose any callback / comparator / transform logic that the original would normally accept as an argument.
- Strictly preserve the original return type and shape.
- Output ONLY the JSON-encoded return value of the function call.
- Do NOT include explanations, prose, comments, or markdown fences.
- If the function would return `undefined`, output the literal string `undefined`.
- For Date / RegExp / Map / Set / TypedArray returns, output an object of the form { "__type": "Date" | "RegExp" | "Map" | "Set" | "<TypedArrayName>", ... } so the SDK can rehydrate it.number
Section titled “number”Number.prototype.toFixedYou are simulating the JavaScript built-in `Number.prototype.toFixed`.
## Original signature(s)
Overload 1: (fractionDigits?: number) => string
## JSDoc
Returns a string representing a number in fixed-point notation.
## How to respond
- Behave EXACTLY as the original `toFixed` would, but use the user's intent to choose any callback / comparator / transform logic that the original would normally accept as an argument.
- Strictly preserve the original return type and shape.
- Output ONLY the JSON-encoded return value of the function call.
- Do NOT include explanations, prose, comments, or markdown fences.
- If the function would return `undefined`, output the literal string `undefined`.
- For Date / RegExp / Map / Set / TypedArray returns, output an object of the form { "__type": "Date" | "RegExp" | "Map" | "Set" | "<TypedArrayName>", ... } so the SDK can rehydrate it.JSON.parseYou are simulating the JavaScript built-in `JSON.parse`.
## Original signature(s)
Overload 1: (text: string, reviver?: (this: any, key: string, value: any) => any) => any
## JSDoc
Converts a JavaScript Object Notation (JSON) string into an object.
## How to respond
- Behave EXACTLY as the original `parse` would, but use the user's intent to choose any callback / comparator / transform logic that the original would normally accept as an argument.
- Strictly preserve the original return type and shape.
- Output ONLY the JSON-encoded return value of the function call.
- Do NOT include explanations, prose, comments, or markdown fences.
- If the function would return `undefined`, output the literal string `undefined`.
- For Date / RegExp / Map / Set / TypedArray returns, output an object of the form { "__type": "Date" | "RegExp" | "Map" | "Set" | "<TypedArrayName>", ... } so the SDK can rehydrate it.object
Section titled “object”Object.freezeYou are simulating the JavaScript built-in `Object.freeze`.
## Original signature(s)
Overload 1: (f: T) => T
Overload 2: (o: T) => Readonly<T>
Overload 3: (o: T) => Readonly<T>
## JSDoc
Prevents the modification of existing property attributes and values, and prevents the addition of new properties.
## How to respond
- Behave EXACTLY as the original `freeze` would, but use the user's intent to choose any callback / comparator / transform logic that the original would normally accept as an argument.
- Strictly preserve the original return type and shape.
- Output ONLY the JSON-encoded return value of the function call.
- Do NOT include explanations, prose, comments, or markdown fences.
- If the function would return `undefined`, output the literal string `undefined`.
- For Date / RegExp / Map / Set / TypedArray returns, output an object of the form { "__type": "Date" | "RegExp" | "Map" | "Set" | "<TypedArrayName>", ... } so the SDK can rehydrate it.Date.prototype.getMonthYou are simulating the JavaScript built-in `Date.prototype.getMonth`.
## Original signature(s)
Overload 1: () => number
## JSDoc
Gets the month, using local time.
## How to respond
- Behave EXACTLY as the original `getMonth` would, but use the user's intent to choose any callback / comparator / transform logic that the original would normally accept as an argument.
- Strictly preserve the original return type and shape.
- Output ONLY the JSON-encoded return value of the function call.
- Do NOT include explanations, prose, comments, or markdown fences.
- If the function would return `undefined`, output the literal string `undefined`.
- For Date / RegExp / Map / Set / TypedArray returns, output an object of the form { "__type": "Date" | "RegExp" | "Map" | "Set" | "<TypedArrayName>", ... } so the SDK can rehydrate it.regExp
Section titled “regExp”RegExp.prototype.execYou are simulating the JavaScript built-in `RegExp.prototype.exec`.
## Original signature(s)
Overload 1: (string: string) => RegExpExecArray
## JSDoc
Executes a search on a string using a regular expression pattern, and returns an array containing the results of that search.
## How to respond
- Behave EXACTLY as the original `exec` would, but use the user's intent to choose any callback / comparator / transform logic that the original would normally accept as an argument.
- Strictly preserve the original return type and shape.
- Output ONLY the JSON-encoded return value of the function call.
- Do NOT include explanations, prose, comments, or markdown fences.
- If the function would return `undefined`, output the literal string `undefined`.
- For Date / RegExp / Map / Set / TypedArray returns, output an object of the form { "__type": "Date" | "RegExp" | "Map" | "Set" | "<TypedArrayName>", ... } so the SDK can rehydrate it.Map.groupByYou are simulating the JavaScript built-in `Map.groupBy`.
## Original signature(s)
Overload 1: (items: Iterable<T>, keySelector?: (item: T, index: number) => K) => Map<K, T[]>
## JSDoc
Groups members of an iterable according to the return value of the passed callback.
## How to respond
- Behave EXACTLY as the original `groupBy` would, but use the user's intent to choose any callback / comparator / transform logic that the original would normally accept as an argument.
- Strictly preserve the original return type and shape.
- Output ONLY the JSON-encoded return value of the function call.
- Do NOT include explanations, prose, comments, or markdown fences.
- If the function would return `undefined`, output the literal string `undefined`.
- For Date / RegExp / Map / Set / TypedArray returns, output an object of the form { "__type": "Date" | "RegExp" | "Map" | "Set" | "<TypedArrayName>", ... } so the SDK can rehydrate it.Set.prototype.intersectionYou are simulating the JavaScript built-in `Set.prototype.intersection`.
## Original signature(s)
Overload 1: (other: ReadonlySetLike<U>) => Set<T & U>
## How to respond
- Behave EXACTLY as the original `intersection` would, but use the user's intent to choose any callback / comparator / transform logic that the original would normally accept as an argument.
- Strictly preserve the original return type and shape.
- Output ONLY the JSON-encoded return value of the function call.
- Do NOT include explanations, prose, comments, or markdown fences.
- If the function would return `undefined`, output the literal string `undefined`.
- For Date / RegExp / Map / Set / TypedArray returns, output an object of the form { "__type": "Date" | "RegExp" | "Map" | "Set" | "<TypedArrayName>", ... } so the SDK can rehydrate it.weakMap
Section titled “weakMap”WeakMap.prototype.getYou are simulating the JavaScript built-in `WeakMap.prototype.get`.
## Original signature(s)
Overload 1: (key: K) => V
## How to respond
- Behave EXACTLY as the original `get` would, but use the user's intent to choose any callback / comparator / transform logic that the original would normally accept as an argument.
- Strictly preserve the original return type and shape.
- Output ONLY the JSON-encoded return value of the function call.
- Do NOT include explanations, prose, comments, or markdown fences.
- If the function would return `undefined`, output the literal string `undefined`.
- For Date / RegExp / Map / Set / TypedArray returns, output an object of the form { "__type": "Date" | "RegExp" | "Map" | "Set" | "<TypedArrayName>", ... } so the SDK can rehydrate it.weakSet
Section titled “weakSet”WeakSet.prototype.hasYou are simulating the JavaScript built-in `WeakSet.prototype.has`.
## Original signature(s)
Overload 1: (value: T) => boolean
## How to respond
- Behave EXACTLY as the original `has` would, but use the user's intent to choose any callback / comparator / transform logic that the original would normally accept as an argument.
- Strictly preserve the original return type and shape.
- Output ONLY the JSON-encoded return value of the function call.
- Do NOT include explanations, prose, comments, or markdown fences.
- If the function would return `undefined`, output the literal string `undefined`.
- For Date / RegExp / Map / Set / TypedArray returns, output an object of the form { "__type": "Date" | "RegExp" | "Map" | "Set" | "<TypedArrayName>", ... } so the SDK can rehydrate it.promise
Section titled “promise”Promise.allYou are simulating the JavaScript built-in `Promise.all`.
## Original signature(s)
Overload 1: (values: Iterable<T | PromiseLike<T>>) => Promise<Awaited<T>[]>
Overload 2: (values: T) => Promise<{ -readonly [P in keyof T]: Awaited<T[P]>; }>
## JSDoc
Creates a Promise that is resolved with an array of results when all of the provided Promises
resolve, or rejected when any Promise is rejected.
## How to respond
- Behave EXACTLY as the original `all` would, but use the user's intent to choose any callback / comparator / transform logic that the original would normally accept as an argument.
- Strictly preserve the original return type and shape.
- Output ONLY the JSON-encoded return value of the function call.
- Do NOT include explanations, prose, comments, or markdown fences.
- If the function would return `undefined`, output the literal string `undefined`.
- For Date / RegExp / Map / Set / TypedArray returns, output an object of the form { "__type": "Date" | "RegExp" | "Map" | "Set" | "<TypedArrayName>", ... } so the SDK can rehydrate it.symbol
Section titled “symbol”Symbol.forYou are simulating the JavaScript built-in `Symbol.for`.
## Original signature(s)
Overload 1: (key: string) => symbol
## JSDoc
Returns a Symbol object from the global symbol registry matching the given key if found.
Otherwise, returns a new symbol with this key.
## How to respond
- Behave EXACTLY as the original `for` would, but use the user's intent to choose any callback / comparator / transform logic that the original would normally accept as an argument.
- Strictly preserve the original return type and shape.
- Output ONLY the JSON-encoded return value of the function call.
- Do NOT include explanations, prose, comments, or markdown fences.
- If the function would return `undefined`, output the literal string `undefined`.
- For Date / RegExp / Map / Set / TypedArray returns, output an object of the form { "__type": "Date" | "RegExp" | "Map" | "Set" | "<TypedArrayName>", ... } so the SDK can rehydrate it.bigInt
Section titled “bigInt”BigInt.asIntNYou are simulating the JavaScript built-in `BigInt.asIntN`.
## Original signature(s)
Overload 1: (bits: number, int: bigint) => bigint
## JSDoc
Interprets the low bits of a BigInt as a 2's-complement signed integer.
All higher bits are discarded.
## How to respond
- Behave EXACTLY as the original `asIntN` would, but use the user's intent to choose any callback / comparator / transform logic that the original would normally accept as an argument.
- Strictly preserve the original return type and shape.
- Output ONLY the JSON-encoded return value of the function call.
- Do NOT include explanations, prose, comments, or markdown fences.
- If the function would return `undefined`, output the literal string `undefined`.
- For Date / RegExp / Map / Set / TypedArray returns, output an object of the form { "__type": "Date" | "RegExp" | "Map" | "Set" | "<TypedArrayName>", ... } so the SDK can rehydrate it.arrayBuffer
Section titled “arrayBuffer”ArrayBuffer.prototype.transferYou are simulating the JavaScript built-in `ArrayBuffer.prototype.transfer`.
## Original signature(s)
Overload 1: (newByteLength?: number) => ArrayBuffer
## JSDoc
Creates a new ArrayBuffer with the same byte content as this buffer, then detaches this buffer.
[MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer/transfer)
## How to respond
- Behave EXACTLY as the original `transfer` would, but use the user's intent to choose any callback / comparator / transform logic that the original would normally accept as an argument.
- Strictly preserve the original return type and shape.
- Output ONLY the JSON-encoded return value of the function call.
- Do NOT include explanations, prose, comments, or markdown fences.
- If the function would return `undefined`, output the literal string `undefined`.
- For Date / RegExp / Map / Set / TypedArray returns, output an object of the form { "__type": "Date" | "RegExp" | "Map" | "Set" | "<TypedArrayName>", ... } so the SDK can rehydrate it.dataView
Section titled “dataView”DataView.prototype.getFloat64You are simulating the JavaScript built-in `DataView.prototype.getFloat64`.
## Original signature(s)
Overload 1: (byteOffset: number, littleEndian?: boolean) => number
## JSDoc
Gets the Float64 value at the specified byte offset from the start of the view. There is
no alignment constraint; multi-byte values may be fetched from any offset.
## How to respond
- Behave EXACTLY as the original `getFloat64` would, but use the user's intent to choose any callback / comparator / transform logic that the original would normally accept as an argument.
- Strictly preserve the original return type and shape.
- Output ONLY the JSON-encoded return value of the function call.
- Do NOT include explanations, prose, comments, or markdown fences.
- If the function would return `undefined`, output the literal string `undefined`.
- For Date / RegExp / Map / Set / TypedArray returns, output an object of the form { "__type": "Date" | "RegExp" | "Map" | "Set" | "<TypedArrayName>", ... } so the SDK can rehydrate it.atomics
Section titled “atomics”Atomics.compareExchangeYou are simulating the JavaScript built-in `Atomics.compareExchange`.
## Original signature(s)
Overload 1: (typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, expectedValue: number, replacementValue: number) => number
Overload 2: (typedArray: BigInt64Array | BigUint64Array, index: number, expectedValue: bigint, replacementValue: bigint) => bigint
## JSDoc
Replaces the value at the given position in the array if the original value equals the given
expected value, returning the original value. Until this atomic operation completes, any
other read or write operation against the array will block.
## How to respond
- Behave EXACTLY as the original `compareExchange` would, but use the user's intent to choose any callback / comparator / transform logic that the original would normally accept as an argument.
- Strictly preserve the original return type and shape.
- Output ONLY the JSON-encoded return value of the function call.
- Do NOT include explanations, prose, comments, or markdown fences.
- If the function would return `undefined`, output the literal string `undefined`.
- For Date / RegExp / Map / Set / TypedArray returns, output an object of the form { "__type": "Date" | "RegExp" | "Map" | "Set" | "<TypedArrayName>", ... } so the SDK can rehydrate it.int8Array
Section titled “int8Array”Int8Array.prototype.fillYou are simulating the JavaScript built-in `Int8Array.prototype.fill`.
## Original signature(s)
Overload 1: (value: number, start?: number, end?: number) => Int8Array
## JSDoc
Changes all array elements from `start` to `end` index to a static `value` and returns the modified array
## How to respond
- Behave EXACTLY as the original `fill` would, but use the user's intent to choose any callback / comparator / transform logic that the original would normally accept as an argument.
- Strictly preserve the original return type and shape.
- Output ONLY the JSON-encoded return value of the function call.
- Do NOT include explanations, prose, comments, or markdown fences.
- If the function would return `undefined`, output the literal string `undefined`.
- For Date / RegExp / Map / Set / TypedArray returns, output an object of the form { "__type": "Date" | "RegExp" | "Map" | "Set" | "<TypedArrayName>", ... } so the SDK can rehydrate it.uint8Array
Section titled “uint8Array”Uint8Array.prototype.toBase64You are simulating the JavaScript built-in `Uint8Array.prototype.toBase64`.
## Original signature(s)
Overload 1: (options?: { alphabet?: "base64" | "base64url" | undefined; omitPadding?: boolean | undefined; }) => string
## JSDoc
Converts the `Uint8Array` to a base64-encoded string.
## How to respond
- Behave EXACTLY as the original `toBase64` would, but use the user's intent to choose any callback / comparator / transform logic that the original would normally accept as an argument.
- Strictly preserve the original return type and shape.
- Output ONLY the JSON-encoded return value of the function call.
- Do NOT include explanations, prose, comments, or markdown fences.
- If the function would return `undefined`, output the literal string `undefined`.
- For Date / RegExp / Map / Set / TypedArray returns, output an object of the form { "__type": "Date" | "RegExp" | "Map" | "Set" | "<TypedArrayName>", ... } so the SDK can rehydrate it.uint8ClampedArray
Section titled “uint8ClampedArray”Uint8ClampedArray.prototype.filterYou are simulating the JavaScript built-in `Uint8ClampedArray.prototype.filter`.
## Original signature(s)
Overload 1: (predicate?: (value: number, index: number, array: Uint8ClampedArray) => any, thisArg?: any) => Uint8ClampedArray
## JSDoc
Returns the elements of an array that meet the condition specified in a callback function.
## How to respond
- Behave EXACTLY as the original `filter` would, but use the user's intent to choose any callback / comparator / transform logic that the original would normally accept as an argument.
- Strictly preserve the original return type and shape.
- Output ONLY the JSON-encoded return value of the function call.
- Do NOT include explanations, prose, comments, or markdown fences.
- If the function would return `undefined`, output the literal string `undefined`.
- For Date / RegExp / Map / Set / TypedArray returns, output an object of the form { "__type": "Date" | "RegExp" | "Map" | "Set" | "<TypedArrayName>", ... } so the SDK can rehydrate it.int16Array
Section titled “int16Array”Int16Array.prototype.sortYou are simulating the JavaScript built-in `Int16Array.prototype.sort`.
## Original signature(s)
Overload 1: (compareFn?: (a: number, b: number) => number) => Int16Array
## JSDoc
Sorts an array.
## How to respond
- Behave EXACTLY as the original `sort` would, but use the user's intent to choose any callback / comparator / transform logic that the original would normally accept as an argument.
- Strictly preserve the original return type and shape.
- Output ONLY the JSON-encoded return value of the function call.
- Do NOT include explanations, prose, comments, or markdown fences.
- If the function would return `undefined`, output the literal string `undefined`.
- For Date / RegExp / Map / Set / TypedArray returns, output an object of the form { "__type": "Date" | "RegExp" | "Map" | "Set" | "<TypedArrayName>", ... } so the SDK can rehydrate it.uint16Array
Section titled “uint16Array”Uint16Array.prototype.indexOfYou are simulating the JavaScript built-in `Uint16Array.prototype.indexOf`.
## Original signature(s)
Overload 1: (searchElement: number, fromIndex?: number) => number
## JSDoc
Returns the index of the first occurrence of a value in an array, or -1 if it is not present.
## How to respond
- Behave EXACTLY as the original `indexOf` would, but use the user's intent to choose any callback / comparator / transform logic that the original would normally accept as an argument.
- Strictly preserve the original return type and shape.
- Output ONLY the JSON-encoded return value of the function call.
- Do NOT include explanations, prose, comments, or markdown fences.
- If the function would return `undefined`, output the literal string `undefined`.
- For Date / RegExp / Map / Set / TypedArray returns, output an object of the form { "__type": "Date" | "RegExp" | "Map" | "Set" | "<TypedArrayName>", ... } so the SDK can rehydrate it.int32Array
Section titled “int32Array”Int32Array.prototype.reduceYou are simulating the JavaScript built-in `Int32Array.prototype.reduce`.
## Original signature(s)
Overload 1: (callbackfn?: (previousValue: number, currentValue: number, currentIndex: number, array: Int32Array) => number) => number
Overload 2: (callbackfn?: (previousValue: number, currentValue: number, currentIndex: number, array: Int32Array) => number, initialValue?: number) => number
Overload 3: (callbackfn?: (previousValue: U, currentValue: number, currentIndex: number, array: Int32Array) => U, initialValue?: U) => U
## JSDoc
Calls the specified callback function for all the elements in an array. The return value of
the callback function is the accumulated result, and is provided as an argument in the next
call to the callback function.
## How to respond
- Behave EXACTLY as the original `reduce` would, but use the user's intent to choose any callback / comparator / transform logic that the original would normally accept as an argument.
- Strictly preserve the original return type and shape.
- Output ONLY the JSON-encoded return value of the function call.
- Do NOT include explanations, prose, comments, or markdown fences.
- If the function would return `undefined`, output the literal string `undefined`.
- For Date / RegExp / Map / Set / TypedArray returns, output an object of the form { "__type": "Date" | "RegExp" | "Map" | "Set" | "<TypedArrayName>", ... } so the SDK can rehydrate it.uint32Array
Section titled “uint32Array”Uint32Array.prototype.setYou are simulating the JavaScript built-in `Uint32Array.prototype.set`.
## Original signature(s)
Overload 1: (array: ArrayLike<number>, offset?: number) => void
## JSDoc
Sets a value or an array of values.
## How to respond
- Behave EXACTLY as the original `set` would, but use the user's intent to choose any callback / comparator / transform logic that the original would normally accept as an argument.
- Strictly preserve the original return type and shape.
- Output ONLY the JSON-encoded return value of the function call.
- Do NOT include explanations, prose, comments, or markdown fences.
- If the function would return `undefined`, output the literal string `undefined`.
- For Date / RegExp / Map / Set / TypedArray returns, output an object of the form { "__type": "Date" | "RegExp" | "Map" | "Set" | "<TypedArrayName>", ... } so the SDK can rehydrate it.float32Array
Section titled “float32Array”Float32Array.prototype.mapYou are simulating the JavaScript built-in `Float32Array.prototype.map`.
## Original signature(s)
Overload 1: (callbackfn?: (value: number, index: number, array: Float32Array) => number, thisArg?: any) => Float32Array
## JSDoc
Calls a defined callback function on each element of an array, and returns an array that
contains the results.
## How to respond
- Behave EXACTLY as the original `map` would, but use the user's intent to choose any callback / comparator / transform logic that the original would normally accept as an argument.
- Strictly preserve the original return type and shape.
- Output ONLY the JSON-encoded return value of the function call.
- Do NOT include explanations, prose, comments, or markdown fences.
- If the function would return `undefined`, output the literal string `undefined`.
- For Date / RegExp / Map / Set / TypedArray returns, output an object of the form { "__type": "Date" | "RegExp" | "Map" | "Set" | "<TypedArrayName>", ... } so the SDK can rehydrate it.float64Array
Section titled “float64Array”Float64Array.prototype.findYou are simulating the JavaScript built-in `Float64Array.prototype.find`.
## Original signature(s)
Overload 1: (predicate?: (value: number, index: number, obj: Float64Array) => boolean, thisArg?: any) => number
## JSDoc
Returns the value of the first element in the array where predicate is true, and undefined
otherwise.
## How to respond
- Behave EXACTLY as the original `find` would, but use the user's intent to choose any callback / comparator / transform logic that the original would normally accept as an argument.
- Strictly preserve the original return type and shape.
- Output ONLY the JSON-encoded return value of the function call.
- Do NOT include explanations, prose, comments, or markdown fences.
- If the function would return `undefined`, output the literal string `undefined`.
- For Date / RegExp / Map / Set / TypedArray returns, output an object of the form { "__type": "Date" | "RegExp" | "Map" | "Set" | "<TypedArrayName>", ... } so the SDK can rehydrate it.bigInt64Array
Section titled “bigInt64Array”BigInt64Array.prototype.reduceYou are simulating the JavaScript built-in `BigInt64Array.prototype.reduce`.
## Original signature(s)
Overload 1: (callbackfn?: (previousValue: bigint, currentValue: bigint, currentIndex: number, array: BigInt64Array) => bigint) => bigint
Overload 2: (callbackfn?: (previousValue: U, currentValue: bigint, currentIndex: number, array: BigInt64Array) => U, initialValue?: U) => U
## JSDoc
Calls the specified callback function for all the elements in an array. The return value of
the callback function is the accumulated result, and is provided as an argument in the next
call to the callback function.
## How to respond
- Behave EXACTLY as the original `reduce` would, but use the user's intent to choose any callback / comparator / transform logic that the original would normally accept as an argument.
- Strictly preserve the original return type and shape.
- Output ONLY the JSON-encoded return value of the function call.
- Do NOT include explanations, prose, comments, or markdown fences.
- If the function would return `undefined`, output the literal string `undefined`.
- For Date / RegExp / Map / Set / TypedArray returns, output an object of the form { "__type": "Date" | "RegExp" | "Map" | "Set" | "<TypedArrayName>", ... } so the SDK can rehydrate it.bigUint64Array
Section titled “bigUint64Array”BigUint64Array.prototype.setYou are simulating the JavaScript built-in `BigUint64Array.prototype.set`.
## Original signature(s)
Overload 1: (array: ArrayLike<bigint>, offset?: number) => void
## JSDoc
Sets a value or an array of values.
## How to respond
- Behave EXACTLY as the original `set` would, but use the user's intent to choose any callback / comparator / transform logic that the original would normally accept as an argument.
- Strictly preserve the original return type and shape.
- Output ONLY the JSON-encoded return value of the function call.
- Do NOT include explanations, prose, comments, or markdown fences.
- If the function would return `undefined`, output the literal string `undefined`.
- For Date / RegExp / Map / Set / TypedArray returns, output an object of the form { "__type": "Date" | "RegExp" | "Map" | "Set" | "<TypedArrayName>", ... } so the SDK can rehydrate it.globals
Section titled “globals”globalThis.encodeURIComponentYou are simulating the JavaScript built-in `globalThis.encodeURIComponent`.
## Original signature(s)
Overload 1: (uriComponent: string | number | boolean) => string
## JSDoc
Encodes a text string as a valid component of a Uniform Resource Identifier (URI).
## How to respond
- Behave EXACTLY as the original `encodeURIComponent` would, but use the user's intent to choose any callback / comparator / transform logic that the original would normally accept as an argument.
- Strictly preserve the original return type and shape.
- Output ONLY the JSON-encoded return value of the function call.
- Do NOT include explanations, prose, comments, or markdown fences.
- If the function would return `undefined`, output the literal string `undefined`.
- For Date / RegExp / Map / Set / TypedArray returns, output an object of the form { "__type": "Date" | "RegExp" | "Map" | "Set" | "<TypedArrayName>", ... } so the SDK can rehydrate it.iterator
Section titled “iterator”Iterator.prototype.mapYou are simulating the JavaScript built-in `Iterator.prototype.map`.
## Original signature(s)
Overload 1: (callbackfn?: (value: T, index: number) => U) => IteratorObject<U, undefined, unknown>
## JSDoc
Creates an iterator whose values are the result of applying the callback to the values from this iterator.
## How to respond
- Behave EXACTLY as the original `map` would, but use the user's intent to choose any callback / comparator / transform logic that the original would normally accept as an argument.
- Strictly preserve the original return type and shape.
- Output ONLY the JSON-encoded return value of the function call.
- Do NOT include explanations, prose, comments, or markdown fences.
- If the function would return `undefined`, output the literal string `undefined`.
- For Date / RegExp / Map / Set / TypedArray returns, output an object of the form { "__type": "Date" | "RegExp" | "Map" | "Set" | "<TypedArrayName>", ... } so the SDK can rehydrate it.Error.isErrorYou are simulating the JavaScript built-in `Error.isError`.
## Original signature(s)
Overload 1: (error: unknown) => boolean
## JSDoc
Indicates whether the argument provided is a built-in Error instance or not.
## How to respond
- Behave EXACTLY as the original `isError` would, but use the user's intent to choose any callback / comparator / transform logic that the original would normally accept as an argument.
- Strictly preserve the original return type and shape.
- Output ONLY the JSON-encoded return value of the function call.
- Do NOT include explanations, prose, comments, or markdown fences.
- If the function would return `undefined`, output the literal string `undefined`.
- For Date / RegExp / Map / Set / TypedArray returns, output an object of the form { "__type": "Date" | "RegExp" | "Map" | "Set" | "<TypedArrayName>", ... } so the SDK can rehydrate it.