diff --git a/src/utils/array/Add.js b/src/utils/array/Add.js index 39a118a3a..dba5126e8 100644 --- a/src/utils/array/Add.js +++ b/src/utils/array/Add.js @@ -20,7 +20,7 @@ * @since 3.4.0 * * @param {array} array - The array to be added to. - * @param {*|Array.<*>} item - The item, or array of items, to add to the array. Each item must be unique within the array. + * @param {any|any[]} item - The item, or array of items, to add to the array. Each item must be unique within the array. * @param {integer} [limit] - Optional limit which caps the size of the array. * @param {function} [callback] - A callback to be invoked for each item successfully added to the array. * @param {object} [context] - The context in which the callback is invoked. diff --git a/src/utils/array/AddAt.js b/src/utils/array/AddAt.js index 110ba17cd..f96a1326c 100644 --- a/src/utils/array/AddAt.js +++ b/src/utils/array/AddAt.js @@ -22,7 +22,7 @@ * @since 3.4.0 * * @param {array} array - The array to be added to. - * @param {*} item - The item, or array of items, to add to the array. + * @param {any|any[]} item - The item, or array of items, to add to the array. * @param {integer} [index=0] - The index in the array where the item will be inserted. * @param {integer} [limit] - Optional limit which caps the size of the array. * @param {function} [callback] - A callback to be invoked for each item successfully added to the array.