js_typeof | R Documentation |
JavaScript wrapper to typeof
to test if a piece of JavaScript code is
syntactically valid, and the type of object it evaluates to. Useful to
verify that a piece of JavaScript code contains a proper function/object.
js_typeof(text)
text |
JavaScript code |
js_typeof("function(x){return x+1}")
js_typeof("(function() {return 'foo'})()")
js_typeof("{foo : 123, bar : true}")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.