This function returns the number one.
Parameters
This method has partially inferred params
Parameters
-
Parameter Description
-
$0
This method has a type in the description and a default in the code
Parameters
-
Parameter Description
-
x
[number](default 2)
This is foo's documentation
The method
Parameters
-
Parameter Description
-
x
Param to method
Represents an IPv6 address
This tests our support of optional parameters
Parameters
-
Parameter Description
-
address
An IPv6 address string
-
groups
[number]
How many octets to parse (optional, default
8
) -
third
A third argument
-
foo
[Array]
to properly be parsed (optional, default
[1]
)
Examples
var address = new Address6('2001::/32');
Create a GeoJSON data source instance given an options object
This tests our support of nested parameters
Parameters
-
Parameter Description
-
options
[Object]
optional options
This tests our support for parameters with explicit types but with default values specified in code.
Parameters
-
Parameter Description
-
x
[number](default 123)
an argument
Returns number some
This tests our support of JSDoc param tags without type information, or any type information we could infer from annotations.
Parameters
-
Parameter Description
-
address
An IPv6 address string