Members
(constant) fortunes :Array.<string>
Array of strings that represent possible To-Do's
Type:
- Array.<string>
- Source:
- See:
-
- https://github.com/getify/You-Dont-Know-JS for the free version of You-dont-know-JS
Methods
(async) fortuneService(whenDone)
Method simulates asynchronous behaviour to deliver a random fortune
Parameters:
| Name | Type | Description |
|---|---|---|
whenDone |
callback function that executes when timeout completed |
- Source:
id(x) → {T}
Returns the Input
Parameters:
| Name | Type | Description |
|---|---|---|
x |
T | input of any type |
- Source:
Returns:
x of the same type
- Type
- T