powered by
Checks whether JS code string is valid code in the current context
validate(code_string)
A boolean indicating whether code is valid
An object of class NULL of length 0.
NULL
The JS code to check
if (FALSE) { ctx <- JSContext$new() ctx$validate("1 + 2") }
Run the code above in your browser using DataLab