forked from rescript-lang/rescript
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJs_primitive.html
75 lines (70 loc) · 4.36 KB
/
Js_primitive.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
<!doctype html>
<html>
<head>
<link rel="stylesheet" href="../api_static/tomorrow-night.css">
<link rel="stylesheet" href="../api_static/style.css" type="text/css">
<script src="../api_static//highlight.pack.js"></script>
<script src="../api_static//script.js"></script>
<script>hljs.initHighlightingOnLoad();</script>
<meta charset="utf8">
<link rel="previous" href="Js_option.html"><link rel="next" href="Js_promise.html">
<title> Js_primitive </title></head>
<body>
<nav class="module-index"><ul><li><a href="Bs.html">Bs</a></li>
<li><a href="Bs_dyn.html">Bs_dyn</a></li>
<li><a href="Bs_dyn_lib.html">Bs_dyn_lib</a></li>
<li><a href="Dom.html">Dom</a></li>
<li><a href="Dom_storage.html">Dom_storage</a></li>
<li><a href="Js.html">Js</a></li>
<li><a href="Js_array.html">Js_array</a></li>
<li><a href="Js_boolean.html">Js_boolean</a></li>
<li><a href="Js_cast.html">Js_cast</a></li>
<li><a href="Js_date.html">Js_date</a></li>
<li><a href="Js_dict.html">Js_dict</a></li>
<li><a href="Js_exn.html">Js_exn</a></li>
<li><a href="Js_float.html">Js_float</a></li>
<li><a href="Js_global.html">Js_global</a></li>
<li><a href="Js_int.html">Js_int</a></li>
<li><a href="Js_int64.html">Js_int64</a></li>
<li><a href="Js_internal.html">Js_internal</a></li>
<li><a href="Js_json.html">Js_json</a></li>
<li><a href="Js_list.html">Js_list</a></li>
<li><a href="Js_math.html">Js_math</a></li>
<li><a href="Js_nativeint.html">Js_nativeint</a></li>
<li><a href="Js_null.html">Js_null</a></li>
<li><a href="Js_null_undefined.html">Js_null_undefined</a></li>
<li><a href="Js_obj.html">Js_obj</a></li>
<li><a href="Js_option.html">Js_option</a></li>
<li><a href="Js_primitive.html">Js_primitive</a></li>
<li><a href="Js_promise.html">Js_promise</a></li>
<li><a href="Js_re.html">Js_re</a></li>
<li><a href="Js_result.html">Js_result</a></li>
<li><a href="Js_string.html">Js_string</a></li>
<li><a href="Js_typed_array.html">Js_typed_array</a></li>
<li><a href="Js_types.html">Js_types</a></li>
<li><a href="Js_undefined.html">Js_undefined</a></li>
<li><a href="Js_unsafe.html">Js_unsafe</a></li>
<li><a href="Js_vector.html">Js_vector</a></li>
<li><a href="Node.html">Node</a></li>
<li><a href="Node_buffer.html">Node_buffer</a></li>
<li><a href="Node_child_process.html">Node_child_process</a></li>
<li><a href="Node_fs.html">Node_fs</a></li>
<li><a href="Node_module.html">Node_module</a></li>
<li><a href="Node_path.html">Node_path</a></li>
<li><a href="Node_process.html">Node_process</a></li></ul></nav>
<div class="navbar"><a class="pre" href="Js_option.html" title="Js_option">Previous</a>
<a class="up" href="index.html" title="Index">Up</a>
<a class="post" href="Js_promise.html" title="Js_promise">Next</a>
</div>
<h1>Module <a href="type_Js_primitive.html">Js_primitive</a></h1>
<pre><span class="keyword">module</span> Js_primitive: <code class="code">sig</code> <a href="Js_primitive.html">..</a> <code class="code">end</code></pre><div class="info module top">
<div class="not-examples">
</div>
</div>
<hr width="100%">
<pre><span id="VALis_nil_undef"><span class="keyword">val</span> is_nil_undef</span> : <code class="type">'a <a href="Js.html#TYPEnull_undefined">Js.null_undefined</a> -> bool</code></pre>
<pre><span id="VALnull_undefined_to_opt"><span class="keyword">val</span> null_undefined_to_opt</span> : <code class="type">'a <a href="Js.html#TYPEnull_undefined">Js.null_undefined</a> -> 'a option</code></pre>
<pre><span id="VALundefined_to_opt"><span class="keyword">val</span> undefined_to_opt</span> : <code class="type">'a <a href="Js.html#TYPEundefined">Js.undefined</a> -> 'a option</code></pre>
<pre><span id="VALnull_to_opt"><span class="keyword">val</span> null_to_opt</span> : <code class="type">'a <a href="Js.html#TYPEnull">Js.null</a> -> 'a option</code></pre>
<pre><span id="VALoption_get"><span class="keyword">val</span> option_get</span> : <code class="type">'a option -> 'a <a href="Js_undefined.html#TYPEt">Js_undefined.t</a></code></pre>
<pre><span id="VALoption_get_unwrap"><span class="keyword">val</span> option_get_unwrap</span> : <code class="type">'a option -> 'b <a href="Js_undefined.html#TYPEt">Js_undefined.t</a></code></pre></body></html>