|
69 | 69 | *
|
70 | 70 | * @static
|
71 | 71 | * @memberOf js/partial/foreach
|
| 72 | + * |
| 73 | + * @property {boolean} [checkArguments=true] |
| 74 | + * |
| 75 | + * Determines whether "foreach" should check the number of arguments in the callback function. |
| 76 | + * If it is enabled and: |
| 77 | + * - when the callback function has one argument, "foreach" will |
| 78 | + * pass one argument to the callback function, which will contain |
| 79 | + * the actual **value** of the container object. |
| 80 | + * |
| 81 | + * - when the callback function has two arguments, "foreach" will |
| 82 | + * pass two arguments to the callback function, the first will be |
| 83 | + * the actual **key**, the second will be the |
| 84 | + * actual **value** of the container object. |
| 85 | + * |
| 86 | + * If it is disabled, always two arguments will be passed to the |
| 87 | + * callback function, the first will be the actual **key**, |
| 88 | + * the second will be the actual **value** of the container object. |
| 89 | + * |
| 90 | + * @property {boolean} [checkOwnProperty=true] |
| 91 | + * |
| 92 | + * Determines whether "foreach" should check whether the container has |
| 93 | + * the current key as an own property via containerObject.hasOwnProperty(key). |
| 94 | + * |
| 95 | + * If it is enabled, only those key => value pairs will be passed to the callback function, |
| 96 | + * which are own properties of the container object. |
| 97 | + * |
| 98 | + * If it is disabled, every key => value of the container object will be passed to the callback function. |
| 99 | + * |
| 100 | + * @property {boolean} [castArrayIndex=true] |
| 101 | + * |
| 102 | + * Determines whether "foreach" should cast the indices of the array-like container object |
| 103 | + * to integers (in {number}). |
| 104 | + * |
| 105 | + * If it is enabled, when and **only when** two arguments (key => value) will be passed to |
| 106 | + * the callback function, the first argument (key) will be cast to an integer (in {number}). |
| 107 | + * |
| 108 | + * If it is disabled, no change and/or cast will occur on the first (key) argument. |
72 | 109 | */
|
73 | 110 | config = {
|
74 |
| - /** |
75 |
| - * @type {boolean} [checkArguments] |
76 |
| - * @default true |
77 |
| - * |
78 |
| - * Determines whether "foreach" should check the number of arguments in the callback function. |
79 |
| - * If it is enabled and: |
80 |
| - * - when the callback function has one argument, "foreach" will |
81 |
| - * pass one argument to the callback function, which will contain |
82 |
| - * the actual **value** of the container object. |
83 |
| - * |
84 |
| - * - when the callback function has two arguments, "foreach" will |
85 |
| - * pass two arguments to the callback function, the first will be |
86 |
| - * the actual **key**, the second will be the |
87 |
| - * actual **value** of the container object. |
88 |
| - * |
89 |
| - * If it is disabled, always two arguments will be passed to the |
90 |
| - * callback function, the first will be the actual **key**, |
91 |
| - * the second will be the actual **value** of the container object. |
92 |
| - */ |
93 | 111 | checkArguments : true,
|
94 |
| - |
95 |
| - /** |
96 |
| - * @property {boolean} [checkOwnProperty=true] |
97 |
| - * @type {boolean} |
98 |
| - * |
99 |
| - * Determines whether "foreach" should check whether the container has |
100 |
| - * the current key as an own property via containerObject.hasOwnProperty(key). |
101 |
| - * |
102 |
| - * If it is enabled, only those key => value pairs will be passed to the callback function, |
103 |
| - * which are own properties of the container object. |
104 |
| - * |
105 |
| - * If it is disabled, every key => value of the container object will be passed to the callback function. |
106 |
| - */ |
107 | 112 | checkOwnProperty : true,
|
108 |
| - |
109 |
| - /** |
110 |
| - * @property {boolean} [castArrayIndex=true] |
111 |
| - * |
112 |
| - * Determines whether "foreach" should cast the indices of the array-like container object |
113 |
| - * to integers (in {number}). |
114 |
| - * |
115 |
| - * If it is enabled, when and **only when** two arguments (key => value) will be passed to |
116 |
| - * the callback function, the first argument (key) will be cast to an integer (in {number}). |
117 |
| - * |
118 |
| - * If it is disabled, no change and/or cast will occur on the first (key) argument. |
119 |
| - */ |
120 | 113 | castArrayIndex : true
|
121 | 114 | },
|
122 | 115 |
|
|
0 commit comments