|
| 1 | +<!-- Generated by documentation.js. Update this documentation by updating the source code. --> |
| 2 | + |
| 3 | +### Table of Contents |
| 4 | + |
| 5 | +- [destructure](#destructure) |
| 6 | +- [destructure](#destructure-1) |
| 7 | +- [multiply](#multiply) |
| 8 | +- [Sink](#sink) |
| 9 | + - [staticProp](#staticprop) |
| 10 | + - [empty](#empty) |
| 11 | + - [aGetter](#agetter) |
| 12 | + - [constructor](#constructor) |
| 13 | + - [hello](#hello) |
| 14 | +- [makeABasket](#makeabasket) |
| 15 | +- [makeASink](#makeasink) |
| 16 | +- [functionWithRest](#functionwithrest) |
| 17 | +- [functionWithRestAndType](#functionwithrestandtype) |
| 18 | +- [foo](#foo) |
| 19 | +- [es6.input](#es6input) |
| 20 | +- [veryImportantTransform](#veryimportanttransform) |
| 21 | +- [iAmProtected](#iamprotected) |
| 22 | +- [iAmPublic](#iampublic) |
| 23 | +- [execute](#execute) |
| 24 | +- [isArrayEqualWith](#isarrayequalwith) |
| 25 | + |
| 26 | +## destructure |
| 27 | + |
| 28 | +This function destructures with defaults. It should not |
| 29 | +have any parameter descriptions. |
| 30 | + |
| 31 | +**Parameters** |
| 32 | + |
| 33 | +- `$0` **[Object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object)** (optional, default `{}`) |
| 34 | + - `$0.phoneNumbers` (optional, default `[]`) |
| 35 | + - `$0.emailAddresses` (optional, default `[]`) |
| 36 | + - `$0.params` **...any** |
| 37 | + |
| 38 | +## destructure |
| 39 | + |
| 40 | +Similar, but with an array |
| 41 | + |
| 42 | +**Parameters** |
| 43 | + |
| 44 | +- `$0` **[Array](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array)** |
| 45 | + - `$0.a` |
| 46 | + - `$0.b` |
| 47 | + - `$0.c` |
| 48 | + |
| 49 | +**Examples** |
| 50 | + |
| 51 | +```javascript |
| 52 | +destructure([1, 2, 3]) |
| 53 | +``` |
| 54 | + |
| 55 | +## multiply |
| 56 | + |
| 57 | +This function returns the number one. |
| 58 | + |
| 59 | +**Parameters** |
| 60 | + |
| 61 | +- `a` **[Array](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array)<[Number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number)>** an array of numbers |
| 62 | +- `b` |
| 63 | + |
| 64 | +Returns **[Number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number)** numberone |
| 65 | + |
| 66 | +## Sink |
| 67 | + |
| 68 | +This is a sink |
| 69 | + |
| 70 | +### staticProp |
| 71 | + |
| 72 | +This is a property of the sink. |
| 73 | + |
| 74 | +### empty |
| 75 | + |
| 76 | +Is it empty |
| 77 | + |
| 78 | +### aGetter |
| 79 | + |
| 80 | +This is a getter method: it should be documented |
| 81 | +as a property. |
| 82 | + |
| 83 | +### constructor |
| 84 | + |
| 85 | +**Parameters** |
| 86 | + |
| 87 | +- `height` **[number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number)** the height of the thing |
| 88 | +- `width` **[number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number)** the width of the thing |
| 89 | + |
| 90 | +### hello |
| 91 | + |
| 92 | +This method says hello |
| 93 | + |
| 94 | +## makeABasket |
| 95 | + |
| 96 | +This method returns a basket. The type should not be linked. |
| 97 | + |
| 98 | +Returns **Basket** a basket |
| 99 | + |
| 100 | +## makeASink |
| 101 | + |
| 102 | +This method returns a [sink](#sink). The type should be linked. |
| 103 | +It takes a [number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number) which should also be linked. |
| 104 | + |
| 105 | +Returns **[Sink](#sink)** a sink |
| 106 | + |
| 107 | +## functionWithRest |
| 108 | + |
| 109 | +This function takes rest params |
| 110 | + |
| 111 | +**Parameters** |
| 112 | + |
| 113 | +- `someParams` **...any** |
| 114 | + |
| 115 | +## functionWithRestAndType |
| 116 | + |
| 117 | +So does this one, with types |
| 118 | + |
| 119 | +**Parameters** |
| 120 | + |
| 121 | +- `someParams` **...[number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number)** |
| 122 | + |
| 123 | +## foo |
| 124 | + |
| 125 | +This is an async method |
| 126 | + |
| 127 | +## es6.input |
| 128 | + |
| 129 | +This function returns the number one. |
| 130 | + |
| 131 | +Returns **[Number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number)** numberone |
| 132 | + |
| 133 | +## veryImportantTransform |
| 134 | + |
| 135 | +This tests our support of optional parameters in ES6 |
| 136 | + |
| 137 | +**Parameters** |
| 138 | + |
| 139 | +- `foo` (optional, default `'bar'`) |
| 140 | + |
| 141 | +## iAmProtected |
| 142 | + |
| 143 | +A protected function |
| 144 | + |
| 145 | +## iAmPublic |
| 146 | + |
| 147 | +A public function |
| 148 | + |
| 149 | +## execute |
| 150 | + |
| 151 | +This is re-exported |
| 152 | + |
| 153 | +## isArrayEqualWith |
| 154 | + |
| 155 | +Regression check for #498 |
| 156 | + |
| 157 | +**Parameters** |
| 158 | + |
| 159 | +- `array1` **[Array](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array)<T>** |
| 160 | +- `array2` **[Array](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array)<T>** |
| 161 | +- `compareFunction` **function (a: T, b: T): [boolean](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean)?** (optional, default `(a: T, b: T): boolean => a === b`) |
| 162 | + |
| 163 | +Returns **[boolean](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** |
0 commit comments