Skip to content

Commit 03a2216

Browse files
committed
Tinker with doclets.io
1 parent 4b38483 commit 03a2216

File tree

1 file changed

+26
-68
lines changed

1 file changed

+26
-68
lines changed

src/js-partial-foreach.js

+26-68
Original file line numberDiff line numberDiff line change
@@ -69,94 +69,52 @@
6969
*
7070
* @static
7171
* @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.
10672
*/
10773
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 = {
12074
/**
12175
* @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.
12776
*
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.
13287
*
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.
13691
*/
13792
checkArguments : true,
13893

13994
/**
14095
* @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}
14397
*
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).
146100
*
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.
148105
*/
149106
checkOwnProperty : true,
150107

151108
/**
152109
* @property {boolean} [castArrayIndex=true]
153-
* Determines whether "foreach" should cast the indices of the array-like container object
154-
* to integers (in {number}).
155110
*
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}).
158116
*
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.
160118
*/
161119
castArrayIndex : true
162120
},

0 commit comments

Comments
 (0)