Global scope
Members
foo
- Source:
- tags/global.js, line 3
RED
- Default Value:
- 16711680
- Source:
- tags/default.js, line 5
triState :number
Enum for tri-state values.
- Source:
- tags/enum.js, line 6
Properties:
Name | Type | Description |
---|---|---|
TRUE | number | The true value |
FALSE | number | |
MAYBE | boolean |
Type:
number
Methods
add(a, b) → {number}
Add two numbers.
- Source:
- tags/description.js, line 7
Parameters:
Name | Type | Description |
---|---|---|
a | number | |
b | number |
Returns:
- Type
- number
bar()
- Source:
- tags/see.js, line 13
- See:
- foo for further information.
- GitHub
bloviate()
A concise summary.
A very long, verbose, wordy, long-winded, tedious, verbacious, tautological, profuse, expansive, enthusiastic, redundant, flowery, eloquent, articulate, loquacious, garrulous, chatty, extended, babbling description.
- Source:
- tags/summary.js, line 7
doSomethingAsynchronously(cb)
Does something asynchronously and executes the callback on completion.
- Source:
- tags/param.js, line 119
Parameters:
Name | Type | Description |
---|---|---|
cb | requestCallback | The callback that handles the response. |
downloadData(url) → {Promise.<string>}
Download data from the specified URL.
- Source:
- tags/async.js, line 1
Parameters:
Name | Type | Description |
---|---|---|
url | string | The URL to download from. |
Returns:
The data from the URL.
- Type
- Promise.<string>
fibonacci() → {number}
Generate numbers in the Fibonacci sequence.
- Source:
- tags/generator.js, line 1
Yields:
The next number in the Fibonacci sequence.
- Type
- number
fibonacci() → {number}
Generate the Fibonacci sequence of numbers.
- Source:
- tags/yields.js, line 6
Yields:
- Type
- number
fibonacci1() → {number}
Generate the Fibonacci sequence of numbers.
- Source:
- tags/yields.js, line 13
Yields:
The next number in the Fibonacci sequence.
- Type
- number
foo()
- Source:
- tags/todo.js, line 5
- To Do:
- Write the documentation.
- Implement this function.
highlightSearchTerm(term)
- Source:
- tags/name.js, line 1
Parameters:
Name | Type | Description |
---|---|---|
term | string | The search term to highlight. |
MyClass()
- Source:
- tags/author.js, line 4
myFunction()
- Source:
- tags/function.js, line 1
myFunction()
- Source:
- tags/function.js, line 4
myFunction()
- Source:
- tags/link.js, line 6
myFunction()
See gettingstarted and dashboard. For more information, see create|Creating a Widget and destroy Destroying a Widget.
- Source:
- tags/tutorial.js, line 14
old()
- Deprecated:
- since version 2.0
- Source:
- tags/deprecated.js, line 4
sayHello2(somebody)
- Source:
- tags/param.js, line 10
Parameters:
Name | Type | Description |
---|---|---|
somebody | string |
sayHello3(somebody)
- Source:
- tags/param.js, line 16
Parameters:
Name | Type | Description |
---|---|---|
somebody | string | Somebody's name. |
sayHello4(somebody)
- Source:
- tags/param.js, line 22
Parameters:
Name | Type | Description |
---|---|---|
somebody | string | Somebody's name. |
sayHello5(somebodyopt)
- Source:
- tags/param.js, line 55
Parameters:
Name | Type | Description |
---|---|---|
somebody [optional] | string | Somebody's name. |
sayHello6(somebodyopt)
- Source:
- tags/param.js, line 64
Parameters:
Name | Type | Description |
---|---|---|
somebody [optional] | string | Somebody's name. |
sayHello7(somebodyopt)
- Source:
- tags/param.js, line 73
Parameters:
Name | Type | Default | Description |
---|---|---|---|
somebody [optional] | string | John Doe | Somebody's name. |
sayHello8(somebodyopt)
- Source:
- tags/param.js, line 82
Parameters:
Name | Type | Default | Description |
---|---|---|---|
somebody [optional] | string or string[] | John Doe | Somebody's name, or an array of names. |
sayHello9(somebody)
- Source:
- tags/param.js, line 93
Parameters:
Name | Type | Description |
---|---|---|
somebody | Any | Whatever you want. |
setMagicNumber(x)
Set the magic number.
- Source:
- tags/typedef.js, line 10
Parameters:
Name | Type | Description |
---|---|---|
x | NumberLike | The magic number. |
solver()
Solves equations of the form a * x = b. Returns the value of x.
- Version:
- 1.2.3
- Source:
- tags/version.js, line 7
- Tutorials:
- Tutorial: solver
sum(...num)
Returns the sum of all numbers passed to the function.
- Source:
- tags/param.js, line 100
Parameters:
Name | Type | Description |
---|---|---|
num [repeatable] | number | A positive or negative number. |
sum1(a, b) → {number}
Returns the sum of a and b
- Source:
- tags/returns.js, line 7
Parameters:
Name | Type | Description |
---|---|---|
a | number | |
b | number |
Returns:
- Type
- number
sum2(a, b) → {number}
Returns the sum of a and b
- Source:
- tags/returns.js, line 16
Parameters:
Name | Type | Description |
---|---|---|
a | number | |
b | number |
Returns:
Sum of a and b
- Type
- number
sum3(a, b, retArr) → {number|Array}
Returns the sum of a and b
- Source:
- tags/returns.js, line 26
Parameters:
Name | Type | Description |
---|---|---|
a | number | |
b | number | |
retArr | boolean | If set to true, the function will return an array |
Returns:
Sum of a and b or an array that contains a, b and the sum of a and b.
- Type
- number or Array
sumAsync(a, b) → {Promise}
Returns the sum of a and b
- Source:
- tags/returns.js, line 38
Parameters:
Name | Type | Description |
---|---|---|
a | number | |
b | number |
Returns:
Promise object represents the sum of a and b
- Type
- Promise
trstr(str)
Remove whitespace from around a string.
- Source:
- tags/borrows.js, line 13
Parameters:
Name | Type | Description |
---|---|---|
str | string |
Type Definitions
NumberLike
A number, or a string containing a number.
- Source:
- tags/typedef.js, line 1
Type:
number or string
requestCallback(responseCode, responseMessage)
This callback type is called `requestCallback` and is displayed as a global symbol.
- Source:
- tags/param.js, line 107
Parameters:
Name | Type | Description |
---|---|---|
responseCode | number | |
responseMessage | string |
User
User type definition
- Source:
- tags/property.js, line 18
Properties:
Name | Type | Description |
---|---|---|
email | string | |
nickName [optional] | string |
Type:
Object