Skip to content

getJSCandidates() function

Home > streplts > getJSCandidates

Inspects isolated VM object models to compute predictive JavaScript property keys.

Signature:

export declare function getJSCandidates(input: string, sandboxRoot: any): {
candidates: string[];
replaceLen: number;
};

Parameter

Type

Description

input

string

The active script code phrase segment.

sandboxRoot

any

Activated proxy model monitoring local variables.

Returns:

{ candidates: string[]; replaceLen: number; }

Matching candidates properties alongside targeted modification span lengths. *