|
65 | 65 | // Global config options
|
66 | 66 |
|
67 | 67 | /**
|
68 |
| - * @typedef {ConfigOptions} configOptions |
| 68 | + * @typedef {Object} config |
| 69 | + * |
| 70 | + * @static |
| 71 | + * |
| 72 | + * @property {boolean} [checkArguments=true] Determines whether "foreach" should check the number of arguments in the callback function. |
| 73 | + * If it is enabled and: |
| 74 | + * - when the callback function has one argument, "foreach" will |
| 75 | + * pass one argument to the callback function, which will contain |
| 76 | + * the actual **value** of the container object. |
| 77 | + * |
| 78 | + * - when the callback function has two arguments, "foreach" will |
| 79 | + * pass two arguments to the callback function, the first will be |
| 80 | + * the actual **key**, the second will be the |
| 81 | + * actual **value** of the container object. |
| 82 | + * |
| 83 | + * If it is disabled, always two arguments will be passed to the |
| 84 | + * callback function, the first will be the actual **key**, |
| 85 | + * the second will be the actual **value** of the container object. |
| 86 | + * |
69 | 87 | * @memberOf js/partial/foreach
|
70 | 88 | */
|
71 |
| - configOptions = { |
72 |
| - /** |
73 |
| - * @type {boolean} [checkArguments=true] |
74 |
| - * @description Determines whether "foreach" should check the number of arguments in the callback function. |
75 |
| - * |
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 |
| - */ |
| 89 | + config = { |
90 | 90 | checkArguments : true,
|
91 | 91 | checkOwnProperty : true,
|
92 | 92 | castArrayIndex : true
|
|
0 commit comments