package ojs
Install
dune-project
Dependency
Authors
Maintainers
Sources
md5=2babb5abd031a57fa521966c506aa8c2
sha512=95ad2c5c3be39f0ef1de57a0bf316b4c692ea2dbe73330594321bf75f691785cacc36ccf249160e60aad20ae96eccc64ea18b380022c9371a11cff325b9f7a8b
doc/ojs/Ojs/index.html
Module OjsSource
Binding with JS values.
The universal type representing arbitrary JS values.
Mapper for built-in types
Wrap OCaml functions as JS functions
Wrap an OCaml function of known arity (>=1) into a JS function. Extra arguments are discarded and missing argument are filled with 'undefined'.
JS objects
Get the property from an object (only works if the property key is a plain ascii string).
Set an object property (only works if the property key is a plain ascii string).
Delete an object property (only works if the property key is a plain ascii string).
Calling JS functions
Call a method on an object (binding 'this' to the object).
Variant of Ojs.call where the arguments are passed as an already built JS array.
Variant of Ojs.apply where the arguments are passed as an already built JS array.
Variant of Ojs.new_obj where the arguments are passed as an already built JS array.
Arrays
Misc
Returns: "object Array" "object Object" "object Number" "object String" "object Null" "object Boolean"