Index of values


(!) [Js_unsafe]
_BYTES_PER_ELEMENT [Js_typed_array.Float64Array]
_BYTES_PER_ELEMENT [Js_typed_array.Float32Array]
_BYTES_PER_ELEMENT [Js_typed_array.Uint32Array]
_BYTES_PER_ELEMENT [Js_typed_array.Int32Array]
_BYTES_PER_ELEMENT [Js_typed_array.Uint16Array]
_BYTES_PER_ELEMENT [Js_typed_array.Int16Array]
_BYTES_PER_ELEMENT [Js_typed_array.Uint8ClampedArray]
_BYTES_PER_ELEMENT [Js_typed_array.Uint8Array]
_BYTES_PER_ELEMENT [Js_typed_array.Int8Array]
_E [Js_math]
Euler's number
_LN10 [Js_math]
natural logarithm of 10
_LN2 [Js_math]
natural logarithm of 2
_LOG10E [Js_math]
base 10 logarithm of E
_LOG2E [Js_math]
base 2 logarithm of E
_NaN [Js_float]
The special value "Not a Number"
_PI [Js_math]
Pi... (ratio of the circumference and diameter of a circle)
_SQRT1_2 [Js_math]
square root of 1/2
_SQRT2 [Js_math]
square root of 2

A
abs_float [Js_math]
absolute value
abs_int [Js_math]
absolute value
acos [Js_math]
arccosine in radians, can return NaN
acosh [Js_math]
hyperbolic arccosine in raidans, can return NaN, ES2015
all [Js_promise]
all2 [Js_promise]
all3 [Js_promise]
all4 [Js_promise]
all5 [Js_promise]
all6 [Js_promise]
anchor [Js_string]
append [Js_array]
array [Js_json]
array_ a makes a JSON array of the Js.Json.t array a
array_ [Js_json]
array_to_value [Bs_dyn]
Make sure value_of* below are always fully applied
asin [Js_math]
arcsine in radians, can return NaN
asinh [Js_math]
hyperbolic arcsine in raidans, ES2015
assign [Js_obj]
assign target source copies properties from source to target

Properties in target will be overwritten by properties in source if they have the same key.

Returns target

atan [Js_math]
arctangent in radians
atan2 [Js_math]
arctangent of the quotient of x and y, mostly... this one's a bit weird
atanh [Js_math]
hyperbolic arctangent in radians, can return NaN, ES2015

B
basename [Node_path]
basename_ext [Node_path]
bind [Js_null_undefined]
Maps the contained value using the given function

If 'a Js.null_undefined contains a value, that value is unwrapped, mapped to a 'b using the given function a' -> 'b, then wrapped back up and returned as 'b Js.null_undefined

bind [Js_undefined]
Maps the contained value using the given function

If 'a Js.undefined contains a value, that value is unwrapped, mapped to a 'b using the given function a' -> 'b, then wrapped back up and returned as 'b Js.undefined

bind [Js_null]
Maps the contained value using the given function

If 'a Js.null contains a value, that value is unwrapped, mapped to a 'b using the given function a' -> 'b, then wrapped back up and returned as 'b Js.null

bool_to_value [Bs_dyn]
boolean [Js_json]
boolean b makes a JSON boolean of the Js.boolean b
booleanArray [Js_json]
booleanArray makes a JSON array of the Js.boolean array a
buffer [Js_typed_array.S]
buffer [Js_typed_array.DataView]
byteLength [Js_typed_array.S]
byteLength [Js_typed_array.DataView]
byteLength [Js_typed_array.ArrayBuffer]
byteOffset [Js_typed_array.S]
byteOffset [Js_typed_array.DataView]

C
castToArrayLike [Js_string]
catch [Js_promise]
cbrt [Js_math]
cube root, can return NaN, ES2015
ceil [Js_math]
ceil_float [Js_math]
smallest int greater than or equal to the argument
ceil_int [Js_math]
smallest int greater than or equal to the argument
charAt [Js_string]
charCodeAt [Js_string]
char_to_value [Bs_dyn]
chownSync [Node_fs]
clearInterval [Js_global]
clears an interval started by Js_global.setInterval
clearTimeout [Js_global]
clears a timeout started by Js_global.setTimeout
close [Node_fs.Watch]
clz32 [Js_math]
number of leading zero bits of the argument's 32 bit int representation, ES2015
codePointAt [Js_string]
type it as float due to that it may return NAN different from charCodeAt
        "\u{01003f}".charCodeAt(0) - 55296
        "\u{01003f}".codePointAt(0) - 65599
    

concat [Js_string]
concat [Js_array]
concatMany [Js_string]
concatMany [Js_array]
config [Node_fs.Watch]
copy [Js_typed_array.S]
copy [Js_array]
copyWithin [Js_typed_array.S]
copyWithin [Js_array]
copyWithinFrom [Js_typed_array.S]
copyWithinFrom [Js_array]
ES2015
copyWithinFromRange [Js_typed_array.S]
copyWithinFromRange [Js_array]
ES2015
cos [Js_math]
cosine in radians
cosh [Js_math]
hyperbolic cosine in radians, ES2015
create [Js_typed_array.Float64Array]
create [Js_typed_array.Float32Array]
create [Js_typed_array.Int32Array]

D
debugger [Js_unsafe]
decodeArray [Js_json]
decodeArray json returns Some a if json is an array, None otherwise
decodeBoolean [Js_json]
decodeBoolean json returns Some b if json is a boolean, None otherwise
decodeNull [Js_json]
decodeNull json returns Some null if json is a null, None otherwise
decodeNumber [Js_json]
decodeNumber json returns Some n if json is a number, None otherwise
decodeObject [Js_json]
decodeObject json returns Some o if json is an object, None otherwise
decodeString [Js_json]
decodeString json returns Some s if json is a string, None otherwise
deleteEnvVar [Node_process]
Note that
process.env.X = undefined
will result in
process.env.X = "undefined"
The only sane way to do it is using `delete`
delimiter [Node_path]
dirname [Node_path]
dirname_ext [Node_path]
discard_sign [Js_int64]
div_mod [Js_int64]

E
empty [Js_obj]
empty () returns the empty object {}
empty [Js_dict]
empty () returns en empty dictionary
empty [Js_null_undefined]
The empty value, undefined
empty [Js_undefined]
The empty value, undefined
empty [Js_null]
The empty value, null
endsWith [Js_string]
endsWithFrom [Js_string]
ES2015
every [Js_typed_array.S]
every [Js_array]
everyi [Js_typed_array.S]
everyi [Js_array]
exec [Js_re]
executes a search on a given string using the given RegExp object

returns Some Js_re.result if a match is found, None otherwise

execSync [Node_child_process]
existsSync [Node_fs]
exit [Node_process]
exp [Js_float]
Deprecated. Use exp in Js.Math instead
exp [Js_math]
natural exponentional
expm1 [Js_math]
natural exponential minus 1, ES2015

F
false_ [Js]
fchownSync [Node_fs]
fileName [Js_exn]
fillFromInPlace [Js_typed_array.S]
fillFromInPlace [Js_array]
ES2015
fillInPlace [Js_typed_array.S]
fillInPlace [Js_array]
fillRangeInPlace [Js_typed_array.S]
fillRangeInPlace [Js_array]
ES2015
filter [Js_typed_array.S]
should we use bool or boolan seems they are intechangeable here
filter [Js_array]
should we use bool or boolan seems they are intechangeable here
filteri [Js_typed_array.S]
filteri [Js_array]
find [Js_typed_array.S]
find [Js_array]
findIndex [Js_typed_array.S]
findIndex [Js_array]
findIndexi [Js_typed_array.S]
findIndexi [Js_array]
ES2015
findi [Js_typed_array.S]
findi [Js_array]
ES2015
flags [Js_re]
returns the enabled flags as a string
floatOfInt [Js_cast]
floatOfInt i returns the float value of i
float_to_value [Bs_dyn]
floor [Js_math]
floor_float [Js_math]
floor_int [Js_math]
largest int greater than or equal to the arugment
fn_method1 [Js_unsafe]
fn_method10 [Js_unsafe]
fn_method2 [Js_unsafe]
fn_method3 [Js_unsafe]
fn_method4 [Js_unsafe]
fn_method5 [Js_unsafe]
fn_method6 [Js_unsafe]
fn_method7 [Js_unsafe]
fn_method8 [Js_unsafe]
fn_method9 [Js_unsafe]
fn_mk0 [Js_unsafe]
fn_mk1 [Js_unsafe]
fn_mk2 [Js_unsafe]
fn_mk3 [Js_unsafe]
fn_mk4 [Js_unsafe]
fn_mk5 [Js_unsafe]
fn_mk6 [Js_unsafe]
fn_mk7 [Js_unsafe]
fn_mk8 [Js_unsafe]
fn_mk9 [Js_unsafe]
fn_run0 [Js_unsafe]
fn_run1 [Js_unsafe]
fn_run2 [Js_unsafe]
fn_run3 [Js_unsafe]
fn_run4 [Js_unsafe]
fn_run5 [Js_unsafe]
fn_run6 [Js_unsafe]
fn_run7 [Js_unsafe]
fn_run8 [Js_unsafe]
fn_run9 [Js_unsafe]
forEach [Js_typed_array.S]
forEach [Js_array]
forEachi [Js_typed_array.S]
forEachi [Js_array]
format [Node_path]
from [Js_typed_array.Float64Array]
from [Js_typed_array.Float32Array]
from [Js_typed_array.Uint32Array]
from [Js_typed_array.Int32Array]
from [Js_typed_array.Uint16Array]
from [Js_typed_array.Int16Array]
from [Js_typed_array.Uint8ClampedArray]
from [Js_typed_array.Uint8Array]
from [Js_typed_array.Int8Array]
from [Js_array]
fromBuffer [Js_typed_array.DataView]
fromBuffer [Js_typed_array.Float64Array]
fromBuffer [Js_typed_array.Float32Array]
fromBuffer [Js_typed_array.Uint32Array]
fromBuffer [Js_typed_array.Int32Array]
fromBuffer [Js_typed_array.Uint16Array]
fromBuffer [Js_typed_array.Int16Array]
fromBuffer [Js_typed_array.Uint8ClampedArray]
fromBuffer [Js_typed_array.Uint8Array]
fromBuffer [Js_typed_array.Int8Array]
can throw
fromBufferOffset [Js_typed_array.DataView]
fromBufferOffset [Js_typed_array.Float64Array]
can throw
fromBufferOffset [Js_typed_array.Float32Array]
can throw
fromBufferOffset [Js_typed_array.Uint32Array]
can throw
fromBufferOffset [Js_typed_array.Int32Array]
can throw
fromBufferOffset [Js_typed_array.Uint16Array]
can throw
fromBufferOffset [Js_typed_array.Int16Array]
can throw
fromBufferOffset [Js_typed_array.Uint8ClampedArray]
can throw
fromBufferOffset [Js_typed_array.Uint8Array]
can throw
fromBufferOffset [Js_typed_array.Int8Array]
fromBufferRange [Js_typed_array.DataView]
fromBufferRange [Js_typed_array.Float64Array]
can throw, offset is in bytes
fromBufferRange [Js_typed_array.Float32Array]
can throw, offset is in bytes
fromBufferRange [Js_typed_array.Uint32Array]
can throw, offset is in bytes
fromBufferRange [Js_typed_array.Int32Array]
can throw, offset is in bytes
fromBufferRange [Js_typed_array.Uint16Array]
can throw, offset is in bytes
fromBufferRange [Js_typed_array.Int16Array]
can throw, offset is in bytes
fromBufferRange [Js_typed_array.Uint8ClampedArray]
can throw, offset is in bytes
fromBufferRange [Js_typed_array.Uint8Array]
can throw, offset is in bytes
fromBufferRange [Js_typed_array.Int8Array]
fromCharCode [Js_string]
fromCharCodeMany [Js_string]
fromCodePoint [Js_string]
fromCodePointMany [Js_string]
ES2015
fromFloat [Js_date]
fromLength [Js_typed_array.Float64Array]
can throw, offset is in bytes, length in elements
fromLength [Js_typed_array.Float32Array]
can throw, offset is in bytes, length in elements
fromLength [Js_typed_array.Uint32Array]
can throw, offset is in bytes, length in elements
fromLength [Js_typed_array.Int32Array]
can throw, offset is in bytes, length in elements
fromLength [Js_typed_array.Uint16Array]
can throw, offset is in bytes, length in elements
fromLength [Js_typed_array.Int16Array]
can throw, offset is in bytes, length in elements
fromLength [Js_typed_array.Uint8ClampedArray]
can throw, offset is in bytes, length in elements
fromLength [Js_typed_array.Uint8Array]
can throw, offset is in bytes, length in elements
fromLength [Js_typed_array.Int8Array]
fromMap [Js_array]
ES2015
fromString [Node_buffer]
fromString [Js_float]
Parses the given string into a float using JavaScript semantics

Returns the number as a float if successfully parsed, _NaN otherwise.

fromString [Js_date]
fromString [Js_re]
Constructs a RegExp object (Js_re.t) from a string

Regex literals ([%re "/.../"]) should generally be preferred, but fromString is very useful when you need to insert a string into a regex.

fromStringWithFlags [Js_re]
Constructs a RegExp object (Js_re.t) from a string with the given flags

See Js_re.fromString

Valid flags:
g global
i ignore case
m multiline
u unicode (es2015)
y sticky (es2015)

from_opt [Js_null_undefined]
Maps 'a option to 'a Js.null_undefined

Some a -> return a
None -> undefined

from_opt [Js_undefined]
Maps 'a option to 'a Js.undefined

Some a -> return a
None -> empty

from_opt [Js_null]
Maps 'a option to 'a Js.null

Some a -> return a
None -> empty

fround [Js_math]
round to nearest single precision float, ES2015
ftruncateSync [Node_fs]

G
get [Js_dict]
get dict key returns None if the key is not found in the dictionary, Some value otherwise
get [Js_string]
getDate [Js_date]
getDay [Js_date]
return the day of the month (1-31)
getFloat32 [Js_typed_array.DataView]
getFloat32LittleEndian [Js_typed_array.DataView]
getFloat64 [Js_typed_array.DataView]
getFloat64LittleEndian [Js_typed_array.DataView]
getFullYear [Js_date]
returns the day of the week (0-6)
getHours [Js_date]
getInt16 [Js_typed_array.DataView]
getInt16LittleEndian [Js_typed_array.DataView]
getInt32 [Js_typed_array.DataView]
getInt32LittleEndian [Js_typed_array.DataView]
getInt8 [Js_typed_array.DataView]
getMilliseconds [Js_date]
getMinutes [Js_date]
getMonth [Js_date]
getSeconds [Js_date]
returns the month (0-11)
getTime [Js_date]
getTimezoneOffset [Js_date]
returns the number of milliseconds since Unix epoch
getUTCDate [Js_date]
getUTCDay [Js_date]
return the day of the month (1-31)
getUTCFullYear [Js_date]
returns the day of the week (0-6)
getUTCHours [Js_date]
getUTCMilliseconds [Js_date]
getUTCMinutes [Js_date]
getUTCMonth [Js_date]
getUTCSeconds [Js_date]
returns the month (0-11)
getUint16 [Js_typed_array.DataView]
getUint16LittleEndian [Js_typed_array.DataView]
getUint32 [Js_typed_array.DataView]
getUint32LittleEndian [Js_typed_array.DataView]
getUint8 [Js_typed_array.DataView]
getYear [Js_date]
global [Js_re]
returns a bool indicating whether the global flag is set

H
hypot [Js_math]
pythagorean equation, ES2015
hypotMany [Js_math]
generalized pythagorean equation, ES2015

I
ignoreCase [Js_re]
returns a bool indicating whether the ignoreCase flag is set
imul [Js_math]
32-bit integer multiplication, ES2015
includes [Js_typed_array.S]
ES2016
includes [Js_string]
includes [Js_array]
includesFrom [Js_string]
ES2015
index [Js_re]
0-based index of the match in the input string
indexOf [Js_typed_array.S]
indexOf [Js_string]
indexOf [Js_array]
indexOfFrom [Js_typed_array.S]
indexOfFrom [Js_string]
indexOfFrom [Js_array]
input [Js_re]
the original input string
int32_to_value [Bs_dyn]
int64_to_value [Bs_dyn]
intOfBool [Js_cast]
intOfBool b returns 1 for when b is true and 0 when b is false
int_to_value [Bs_dyn]
internalToOCamlException [Js_exn]
Used by the compiler internally
isAbsolute [Node_path]
isArray [Js_array]
ES2015
isBuffer [Node_buffer]
isFinite [Js_float]
Tests if the given value is finite

Returns true if the given value is a finite number, false otherwise

isNaN [Js_float]
Tests if the given value is _NaN

Note that both _NaN = _NaN and _NaN == _NaN will return false. isNaN is therefore necessary to test for _NaN.

Returns true if the given value is _NaN, false otherwise

is_nil_undef [Js_primitive]
iter [Js_null_undefined]
Iterates over the contained value with the given function

If 'a Js.null_undefined contains a value, that value is unwrapped and applied to the given function.

iter [Js_undefined]
Iterates over the contained value with the given function

If 'a Js.undefined contains a value, that value is unwrapped and applied to the given function.

iter [Js_null]
Iterates over the contained value with the given function

If 'a Js.null contains a value, that value is unwrapped and applied to the given function.


J
join [Node_path]
join [Js_typed_array.S]
join [Js_array]
join2 [Node_path]
joinWith [Js_typed_array.S]
joinWith [Js_array]

K
keys [Js_obj]
keys obj returns an array of the keys of obj's own enumerable properties
keys [Js_dict]
keys dict returns all the keys in the dictionary dict

L
lastIndex [Js_re]
returns the index where the next match will start its search

This property will be modified when the RegExp object is used, if the global ("g") flag is set.

lastIndexOf [Js_typed_array.S]
lastIndexOf [Js_string]
lastIndexOf [Js_array]
lastIndexOfFrom [Js_typed_array.S]
lastIndexOfFrom [Js_string]
lastIndexOfFrom [Js_array]
lastIndexOf_start [Js_array]
length [Js_typed_array.S]
length [Js_string]
length [Js_array]
link [Js_string]
ES2015
list_to_value [Bs_dyn]
localeCompare [Js_string]
log [Js_float]
Deprecated. Use log in Js.Math instead
log [Js_math]
natural logarithm, can return NaN
log [Js]
A convenience function to log everything
log10 [Js_math]
base 10 logarithm, can return NaN, ES2015
log1p [Js_math]
natural logarithm of 1 + the argument, can return NaN, ES2015
log2 [Js_float]
Deprecated. Use _LN2 in Js.Math instead
log2 [Js_math]
base 2 logarithm, can return NaN, ES2015

M
make [Js_typed_array.DataView]
make [Js_typed_array.Float64Array]
make [Js_typed_array.Float32Array]
make [Js_typed_array.Uint32Array]
make [Js_typed_array.Int32Array]
make [Js_typed_array.Uint16Array]
make [Js_typed_array.Int16Array]
make [Js_typed_array.Uint8ClampedArray]
make [Js_typed_array.Uint8Array]
make [Js_typed_array.Int8Array]
make [Js_typed_array.ArrayBuffer]
make [Js_date]
make [Js_promise]
make [Js_string]
makeWithYM [Js_date]
makeWithYMD [Js_date]
makeWithYMDH [Js_date]
makeWithYMDHM [Js_date]
makeWithYMDHMS [Js_date]
map [Js_typed_array.S]
map [Js_array]
mapi [Js_typed_array.S]
mapi [Js_array]
match_ [Js_string]
matches [Js_re]
an array of the matches, the first is the full match and the remaining are the substring matches
max [Js_float]
Deprecated. Use max_float in Js.Math instead
maxMany_float [Js_math]
max value
maxMany_int [Js_math]
max value
max_float [Js_math]
max value
max_int [Js_math]
max value
message [Js_exn]
method_run0 [Js_unsafe]
method_run1 [Js_unsafe]
method_run2 [Js_unsafe]
method_run3 [Js_unsafe]
method_run4 [Js_unsafe]
method_run5 [Js_unsafe]
method_run6 [Js_unsafe]
method_run7 [Js_unsafe]
method_run8 [Js_unsafe]
method_run9 [Js_unsafe]
minMany_float [Js_math]
max value
minMany_int [Js_math]
max value
min_float [Js_math]
max value
min_int [Js_math]
max value
module_ [Node_module]
multiline [Js_re]
returns a bool indicating whether the multiline flag is set

N
name [Js_exn]
nan [Js_float]
Deprecated. Use Js_float._NaN instead
nativeint_to_value [Bs_dyn]
normalize [Node_path]
normalize [Js_string]
normalizeByForm [Js_string]
ES2015
now [Js_date]
null [Js_json]
null is the singleton null JSON value
null [Js_null_undefined]
The null value of type 'a Js.null_undefined
null [Js]
The same as empty in Js.Null will be compiled as null
null_to_opt [Js_primitive]
null_undefined_to_opt [Js_primitive]
number [Js_json]
number n makes a JSON number of the float n
numberArray [Js_json]
numberArray a makes a JSON array of the float array a

O
objectArray [Js_json]
objectArray a makes a JSON array of the JsDict.t array a
object_ [Js_json]
object_ dict makes a JSON objet of the Js.Dict.t dict
of_any [Js_float]
Deprecated. This is an unsafe function, please use a proper conversion function
of_buffer [Js_typed_array.Float64Array]
of_buffer [Js_typed_array.Float32Array]
of_buffer [Js_typed_array.Int32Array]
on [Node_fs.Watch]
there is no need to accept listener, since we return a watcher back it can register event listener there . Currently we introduce a type string_buffer, for the filename, it will be Buffer when the encoding is `utf8. This is dependent type which can be tracked by GADT in some way, but to make things simple, let's just introduce an or type
openSync [Node_fs]
option [Node_child_process]
option_get [Js_primitive]
option_to_value [Bs_dyn]

P
parse [Node_path]
parse [Js_json]
parse [Js_date]
parseExn [Js_json]
parse s parses the string s into a JSON data structure

Returns a JSON data structure

pop [Js_array]
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/push
pow_float [Js_math]
base to the power of the exponent
pow_int [Js_math]
base to the power of the exponent
process [Node_process]
push [Js_array]
pushMany [Js_array]
putEnvVar [Node_process]

R
race [Js_promise]
raiseError [Js_exn]
Raise Js exception Error object with stacktrace
raiseEvalError [Js_exn]
raiseRangeError [Js_exn]
raiseReferenceError [Js_exn]
raiseSyntaxError [Js_exn]
raiseTypeError [Js_exn]
raiseUriError [Js_exn]
random [Js_float]
Deprecated. Use random in Js.Math instead
random [Js_math]
random number in [0,1)
random_int [Js_math]
random number in [min,max)
raw_expr [Js_unsafe]
raw_stmt [Js_unsafe]
readAs [Node_child_process]
readFileAsUtf8Sync [Node_fs]
readFileSync [Node_fs]
readdirSync [Node_fs]
Most fs functions let you omit the callback argument. If you do, a default callback is used that rethrows errors. To get a trace to the original call site, set the `NODE_DEBUG` environment variable:
readlinkSync [Node_fs]
record_to_value [Bs_dyn]
reduce [Js_typed_array.S]
reduce [Js_array]
reduceRight [Js_typed_array.S]
reduceRight [Js_array]
reduceRighti [Js_typed_array.S]
reduceRighti [Js_array]
reducei [Js_typed_array.S]
reducei [Js_array]
reifyType [Js_json]
reifyType v returns both type and underlying value
reify_type [Js_types]
Given any value it returns its type and the same value. Note that since 'b t is GADT, the type system will reify its type automatically,
reify_type [Js_json]
Deprecated. Please use Js_json.reifyType instead
reject [Js_promise]
relative [Node_path]
removeCountInPlace [Js_array]
removeFromInPlace [Js_array]
renameSync [Node_fs]
repeat [Js_string]
replace [Js_string]
replaceByRe [Js_string]
resolve [Node_path]
resolve [Js_promise]
return [Js_null_undefined]
Constructs a value of 'a Js.null_undefined containing a value of 'a
return [Js_undefined]
Constructs a value of 'a Js.undefined containing a value of 'a
return [Js_null]
Constructs a value of 'a Js.null containing a value of 'a
reverseInPlace [Js_typed_array.S]
reverseInPlace [Js_array]
rmdirSync [Node_fs]
round [Js_math]
rounds to nearest integer

S
search [Js_string]
sep [Node_path]
set [Js_dict]
set dict key value sets the key/value in dict
setArray [Js_typed_array.S]
setArrayOffset [Js_typed_array.S]
setDate [Js_date]
setFloat32 [Js_typed_array.DataView]
setFloat32LittleEndian [Js_typed_array.DataView]
setFloat64 [Js_typed_array.DataView]
setFloat64LittleEndian [Js_typed_array.DataView]
setFullYear [Js_date]
setFullYearM [Js_date]
setFullYearMD [Js_date]
setHours [Js_date]
setHoursM [Js_date]
setHoursMS [Js_date]
setHoursMSMs [Js_date]
setInt16 [Js_typed_array.DataView]
setInt16LittleEndian [Js_typed_array.DataView]
setInt32 [Js_typed_array.DataView]
setInt32LittleEndian [Js_typed_array.DataView]
setInt8 [Js_typed_array.DataView]
setInterval [Js_global]
repeatedly executes a callback with a specified interval (in milliseconds) between calls

returns an Js_global.intervalId that can be passed to Js_global.clearInterval to cancel the timeout

setMilliseconds [Js_date]
setMinutes [Js_date]
setMinutesS [Js_date]
setMinutesSMs [Js_date]
setMonth [Js_date]
setMonthD [Js_date]
setSeconds [Js_date]
setSecondsMs [Js_date]
setTime [Js_date]
setTimeout [Js_global]
executes a callback after a specified delay (in milliseconds)

returns a Js_global.timeoutId that can be passed to Js_global.clearTimeout to cancel the timeout

setUTCDate [Js_date]
setUTCFullYear [Js_date]
setUTCFullYearM [Js_date]
setUTCFullYearMD [Js_date]
setUTCHours [Js_date]
setUTCHoursM [Js_date]
setUTCHoursMS [Js_date]
setUTCHoursMSMs [Js_date]
setUTCMilliseconds [Js_date]
setUTCMinutes [Js_date]
setUTCMinutesS [Js_date]
setUTCMinutesSMs [Js_date]
setUTCMonth [Js_date]
setUTCMonthD [Js_date]
setUTCSeconds [Js_date]
setUTCSecondsMs [Js_date]
setUTCTime [Js_date]
setUint16 [Js_typed_array.DataView]
setUint16LittleEndian [Js_typed_array.DataView]
setUint32 [Js_typed_array.DataView]
setUint32LittleEndian [Js_typed_array.DataView]
setUint8 [Js_typed_array.DataView]
setYear [Js_date]
shape_of_record [Bs_dyn]
shape_of_variant [Bs_dyn]
shift [Js_array]
sign_float [Js_math]
the sign of the argument, 1, -1, 0, -0 or NaN, ES2015
sign_int [Js_math]
the sign of the argument, 1, -1 or 0, ES2015
sin [Js_math]
sine in radians
sinh [Js_math]
hyperbolic sine in radians, ES2015
slice [Js_typed_array.S]
slice [Js_typed_array.ArrayBuffer]
slice [Js_string]
slice [Js_array]
sliceFrom [Js_typed_array.S]
sliceFrom [Js_typed_array.ArrayBuffer]
sliceFrom [Js_array]
sliceToEnd [Js_string]
slice_copy [Js_array]
slice_start [Js_array]
some [Js_typed_array.S]
some [Js_array]
somei [Js_typed_array.S]
somei [Js_array]
sortInPlace [Js_typed_array.S]
sortInPlace [Js_array]
sortInPlaceWith [Js_typed_array.S]
sortInPlaceWith [Js_array]
source [Js_re]
returns the pattern as a string
spawnSync [Node_child_process]
spliceInPlace [Js_array]
split [Js_string]
splitAtMost [Js_string]
splitByRe [Js_string]
splitByReAtMost [Js_string]
splitLimited [Js_string]
splitRegexpLimited [Js_string]
sqrt [Js_math]
square root, can return NaN
stack [Js_exn]
startsWith [Js_string]
startsWithFrom [Js_string]
ES2015
sticky [Js_re]
returns a bool indicating whether the sticky flag is set
string [Js_json]
string s makes a JSON string of the string s
stringArray [Js_json]
stringArray a makes a JSON array of the string array a
string_to_value [Bs_dyn]
stringify [Js_json]
stringify json formats the JSON data structure as a string

Returns the string representation of a given JSON data structure

stringifyAny [Js_json]
stringifyAny value formats any value into a JSON string
substr [Js_string]
substrAtMost [Js_string]
substring [Js_string]
substringToEnd [Js_string]

T
tan [Js_math]
tangent in radians
tanh [Js_math]
hyperbolic tangent in radians, ES2015
test [Node]
We except a good inliner will eliminate such boxing in the future
test [Js_types]
test [Js_json]
test v kind returns true if v is of kind
test [Js_re]
tests whether the given RegExp object will match a given string

returns true if a match is found, false otherwise

test [Js_null_undefined]
Returns true if the given value is null or undefined, false otherwise
test [Js_undefined]
Returns true if the given value is empty (undefined), false otherwise
test [Js_null]
Returns true if the given value is empty (null), false otherwise
testAny [Js_undefined]
then_ [Js_promise]
toDateString [Js_date]
toExponential [Js_int]
Formats an int using exponential (scientific) notation

Returns a string representing the given value in exponential notation

toExponential [Js_float]
Formats a float using exponential (scientific) notation

Returns a string representing the given value in exponential notation

toExponentialWithPrecision [Js_int]
Formats an int using exponential (scientific) notation

digits specifies how many digits should appear after the decimal point. The value must be in the range [0, 20] (inclusive).

Returns a string representing the given value in exponential notation

The output will be rounded or padded with zeroes if necessary.

toExponentialWithPrecision [Js_float]
Formats a float using exponential (scientific) notation

digits specifies how many digits should appear after the decimal point. The value must be in the range [0, 20] (inclusive).

Returns a string representing the given value in exponential notation

The output will be rounded or padded with zeroes if necessary.

toFixed [Js_float]
Formats a float using fixed point notation

Returns a string representing the given value in fixed-point notation (usually)

toFixedWithPrecision [Js_float]
Formats a float using fixed point notation

digits specifies how many digits should appear after the decimal point. The value must be in the range [0, 20] (inclusive). Defaults to 0.

Returns a string representing the given value in fixed-point notation (usually)

The output will be rounded or padded with zeroes if necessary.

toGMTString [Js_date]
toISOString [Js_date]
toJSON [Js_date]
toLocaleDateString [Js_date]
toLocaleLowerCase [Js_string]
toLocaleString [Js_typed_array.S]
toLocaleString [Js_date]
toLocaleString [Js_array]
toLocaleTimeString [Js_date]
toLocaleUpperCase [Js_string]
toLowerCase [Js_string]
toPrecision [Js_int]
Formats a int using some fairly arbitrary rules

Returns a string representing the given value in fixed-point (usually)

toPrecision differs from toFixed in that the former will format the number with full precision, while the latter will not output any digits after the decimal point.

toPrecision [Js_float]
Formats a float using some fairly arbitrary rules

Returns a string representing the given value in fixed-point (usually)

toPrecision differs from toFixed in that the former will format the number with full precision, while the latter will not output any digits after the decimal point.

toPrecisionWithPrecision [Js_int]
Formats an int using some fairly arbitrary rules

digits specifies how many digits should appear in total. The value must between 0 and some arbitrary number that's hopefully at least larger than 20 (for Node it's 21. Why? Who knows).

Returns a string representing the given value in fixed-point or scientific notation

The output will be rounded or padded with zeroes if necessary.

toPrecisionWithPrecision differs from toFixedWithPrecision in that the former will count all digits against the precision, while the latter will count only the digits after the decimal point. toPrecisionWithPrecision will also use scientific notation if the specified precision is less than the number for digits before the decimal point.

toPrecisionWithPrecision [Js_float]
Formats a float using some fairly arbitrary rules

digits specifies how many digits should appear in total. The value must between 0 and some arbitrary number that's hopefully at least larger than 20 (for Node it's 21. Why? Who knows).

Returns a string representing the given value in fixed-point or scientific notation

The output will be rounded or padded with zeroes if necessary.

toPrecisionWithPrecision differs from toFixedWithPrecision in that the former will count all digits against the precision, while the latter will count only the digits after the decimal point. toPrecisionWithPrecision will also use scientific notation if the specified precision is less than the number for digits before the decimal point.

toString [Js_int]
Formats a int as a string

Returns a string representing the given value in fixed-point (usually)

toString [Js_float]
Formats a float as a string

Returns a string representing the given value in fixed-point (usually)

toString [Js_typed_array.S]
toString [Js_date]
toString [Js_array]
toStringWithRadix [Js_int]
Formats an int as a string

radix specifies the radix base to use for the formatted number. The value must be in the range [2, 36] (inclusive).

Returns a string representing the given value in fixed-point (usually)

toStringWithRadix [Js_float]
Formats a float as a string

radix specifies the radix base to use for the formatted number. The value must be in the range [2, 36] (inclusive).

Returns a string representing the given value in fixed-point (usually)

toTimeString [Js_date]
toUTCString [Js_date]
toUpperCase [Js_string]
to_bool [Js]
convert Js boolean to OCaml bool
to_exponential [Js_float]
Deprecated. Use Js_float.toExponential instead
to_hex [Js_int64]
to_js_boolean [Js_boolean]
to_opt [Js_null_undefined]
Maps 'a Js.null_undefined to 'a option

return a -> Some a
undefined -> None
null -> None

to_opt [Js_undefined]
Maps 'a Js.undefined to 'a option

return a -> Some a
empty -> None

to_opt [Js_null]
Maps 'a Js.null to 'a option

return a -> Some a
empty -> None

to_string [Js_nativeint]
to_string [Bs_dyn_lib]
Generates a string representation of a Bs_dyn. value
trim [Js_string]
true_ [Js]
trunc [Js_math]
truncate, ie. remove fractional digits, returns a value not representable as int if NaN, ES2015
truncateSync [Node_fs]
tuple_2_to_value [Bs_dyn]
tuple_3_to_value [Bs_dyn]
tuple_4_to_value [Bs_dyn]
tuple_5_to_value [Bs_dyn]
tuple_6_to_value [Bs_dyn]
typeof [Js]
typeof x will be compiled as typeof x in JS Please consider functions in Js.Types for a type safe way of reflection

U
undefined [Js_null_undefined]
The undefined value of type 'a Js.null_undefined
undefined [Js]
The same as empty Js.Undefined will be compiled as undefined
undefined_to_opt [Js_primitive]
unicode [Js_re]
returns a bool indicating whether the unicode flag is set
unlinkSync [Node_fs]
unsafeDeleteKey [Js_dict]
Experimental internal funciton
unsafeGet [Js_dict]
unsafeGet dict key return the value if the key exists, otherwise an undefined value is returned. Must be used only when the existence of a key is certain. (i.e. when having called keys function previously.
unsafeReplaceBy0 [Js_string]
returns a new string with some or all matches of a pattern replaced by the value returned from the given function
unsafeReplaceBy1 [Js_string]
returns a new string with some or all matches of a pattern replaced by the value returned from the given function
unsafeReplaceBy2 [Js_string]
returns a new string with some or all matches of a pattern replaced by the value returned from the given function
unsafeReplaceBy3 [Js_string]
returns a new string with some or all matches of a pattern replaced by the value returned from the given function
unsafe_ceil [Js_math]
unsafe_ceil_int [Js_math]
may return values not representable by int
unsafe_downgrade [Js_unsafe]
unsafe_floor [Js_math]
unsafe_floor_int [Js_math]
may return values not representable by int
unsafe_ge [Js]
unsafe_ge a b will be compiled as a >= b. See also Js.unsafe_lt
unsafe_get [Js_typed_array.S]
unsafe_gt [Js]
unsafe_gt a b will be compiled as a > b. See also Js.unsafe_lt
unsafe_le [Js]
unsafe_le a b will be compiled as a <= b. See also Js.unsafe_lt
unsafe_lt [Js]
unsafe_lt a b will be compiled as a < b. It is marked as unsafe, since it is impossible to give a proper semantics for comparision which applies to any type
unsafe_round [Js_math]
rounds to nearest integer, returns a value not representable as int if NaN
unsafe_set [Js_typed_array.S]
unsafe_trunc [Js_math]
truncate, ie. remove fractional digits, returns a value not representable as int if NaN, ES2015
unshift [Js_array]
unshiftMany [Js_array]
uptime [Node_process]
The process.uptime() method returns the number of seconds the current Node.js process has been running.)
utcWithYM [Js_date]
utcWithYMD [Js_date]
utcWithYMDH [Js_date]
utcWithYMDHM [Js_date]
utcWithYMDHMS [Js_date]

V
valueOf [Js_date]
variant_to_value [Bs_dyn]

W
watch [Node_fs.Watch]
writeFileAsUtf8Sync [Node_fs]
writeFileSync [Node_fs]