|
69 | 69 | *
|
70 | 70 | * @static
|
71 | 71 | * @memberOf js/partial/foreach
|
72 |
| - * |
73 |
| - * @property {boolean} [checkArguments=true] |
74 |
| - * Determines whether "foreach" should check the number of arguments in the callback function. |
75 |
| - * If it is enabled and: |
76 |
| - * - when the callback function has one argument, "foreach" will |
77 |
| - * pass one argument to the callback function, which will contain |
78 |
| - * the actual **value** of the container object. |
79 |
| - * |
80 |
| - * - when the callback function has two arguments, "foreach" will |
81 |
| - * pass two arguments to the callback function, the first will be |
82 |
| - * the actual **key**, the second will be the |
83 |
| - * actual **value** of the container object. |
84 |
| - * |
85 |
| - * If it is disabled, always two arguments will be passed to the |
86 |
| - * callback function, the first will be the actual **key**, |
87 |
| - * the second will be the actual **value** of the container object. |
88 |
| - * |
89 |
| - * @property {boolean} [checkOwnProperty=true] |
90 |
| - * Determines whether "foreach" should check whether the container has |
91 |
| - * the current key as an own property via containerObject.hasOwnProperty(key). |
92 |
| - * |
93 |
| - * If it is enabled, only those key => value pairs will be passed to the callback function, |
94 |
| - * which are own properties of the container object. |
95 |
| - * |
96 |
| - * If it is disabled, every key => value of the container object will be passed to the callback function. |
97 |
| - * |
98 |
| - * @property {boolean} [castArrayIndex=true] |
99 |
| - * Determines whether "foreach" should cast the indices of the array-like container object |
100 |
| - * to integers (in {number}). |
101 |
| - * |
102 |
| - * If it is enabled, when and **only when** two arguments (key => value) will be passed to |
103 |
| - * the callback function, the first argument (key) will be cast to an integer (in {number}). |
104 |
| - * |
105 |
| - * If it is disabled, no change and/or cast will occur on the first (key) argument. |
106 | 72 | */
|
107 | 73 | config = {
|
108 |
| - checkArguments : true, |
109 |
| - checkOwnProperty : true, |
110 |
| - castArrayIndex : true |
111 |
| - }, |
112 |
| - |
113 |
| - /** |
114 |
| - * @typedef {Object} |
115 |
| - * |
116 |
| - * @static |
117 |
| - * @memberOf js/partial/foreach |
118 |
| - */ |
119 |
| - config2 = { |
120 | 74 | /**
|
121 | 75 | * @property {boolean} [checkArguments=true]
|
122 |
| - * Determines whether "foreach" should check the number of arguments in the callback function. |
123 |
| - * If it is enabled and: |
124 |
| - * - when the callback function has one argument, "foreach" will |
125 |
| - * pass one argument to the callback function, which will contain |
126 |
| - * the actual **value** of the container object. |
127 | 76 | *
|
128 |
| - * - when the callback function has two arguments, "foreach" will |
129 |
| - * pass two arguments to the callback function, the first will be |
130 |
| - * the actual **key**, the second will be the |
131 |
| - * actual **value** of the container object. |
| 77 | + * Determines whether "foreach" should check the number of arguments in the callback function. |
| 78 | + * If it is enabled and: |
| 79 | + * - when the callback function has one argument, "foreach" will |
| 80 | + * pass one argument to the callback function, which will contain |
| 81 | + * the actual **value** of the container object. |
| 82 | + * |
| 83 | + * - when the callback function has two arguments, "foreach" will |
| 84 | + * pass two arguments to the callback function, the first will be |
| 85 | + * the actual **key**, the second will be the |
| 86 | + * actual **value** of the container object. |
132 | 87 | *
|
133 |
| - * If it is disabled, always two arguments will be passed to the |
134 |
| - * callback function, the first will be the actual **key**, |
135 |
| - * the second will be the actual **value** of the container object. |
| 88 | + * If it is disabled, always two arguments will be passed to the |
| 89 | + * callback function, the first will be the actual **key**, |
| 90 | + * the second will be the actual **value** of the container object. |
136 | 91 | */
|
137 | 92 | checkArguments : true,
|
138 | 93 |
|
139 | 94 | /**
|
140 | 95 | * @property {boolean} [checkOwnProperty=true]
|
141 |
| - * Determines whether "foreach" should check whether the container has |
142 |
| - * the current key as an own property via containerObject.hasOwnProperty(key). |
| 96 | + * @type {boolean} |
143 | 97 | *
|
144 |
| - * If it is enabled, only those key => value pairs will be passed to the callback function, |
145 |
| - * which are own properties of the container object. |
| 98 | + * Determines whether "foreach" should check whether the container has |
| 99 | + * the current key as an own property via containerObject.hasOwnProperty(key). |
146 | 100 | *
|
147 |
| - * If it is disabled, every key => value of the container object will be passed to the callback function. |
| 101 | + * If it is enabled, only those key => value pairs will be passed to the callback function, |
| 102 | + * which are own properties of the container object. |
| 103 | + * |
| 104 | + * If it is disabled, every key => value of the container object will be passed to the callback function. |
148 | 105 | */
|
149 | 106 | checkOwnProperty : true,
|
150 | 107 |
|
151 | 108 | /**
|
152 | 109 | * @property {boolean} [castArrayIndex=true]
|
153 |
| - * Determines whether "foreach" should cast the indices of the array-like container object |
154 |
| - * to integers (in {number}). |
155 | 110 | *
|
156 |
| - * If it is enabled, when and **only when** two arguments (key => value) will be passed to |
157 |
| - * the callback function, the first argument (key) will be cast to an integer (in {number}). |
| 111 | + * Determines whether "foreach" should cast the indices of the array-like container object |
| 112 | + * to integers (in {number}). |
| 113 | + * |
| 114 | + * If it is enabled, when and **only when** two arguments (key => value) will be passed to |
| 115 | + * the callback function, the first argument (key) will be cast to an integer (in {number}). |
158 | 116 | *
|
159 |
| - * If it is disabled, no change and/or cast will occur on the first (key) argument. |
| 117 | + * If it is disabled, no change and/or cast will occur on the first (key) argument. |
160 | 118 | */
|
161 | 119 | castArrayIndex : true
|
162 | 120 | },
|
|
0 commit comments