From c048c1bb5456590dd832ef29035220a0b5cf546c Mon Sep 17 00:00:00 2001 From: Chris <7539871+paxperscientiam@users.noreply.github.com> Date: Sat, 2 Dec 2023 15:38:05 -0500 Subject: [PATCH] Update GetFirst.js Improve type accuracy for GetFirst --- src/utils/array/GetFirst.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/array/GetFirst.js b/src/utils/array/GetFirst.js index 851f872ad..8daa1176d 100644 --- a/src/utils/array/GetFirst.js +++ b/src/utils/array/GetFirst.js @@ -25,7 +25,7 @@ var SafeRange = require('./SafeRange'); * @param {number} [startIndex=0] - An optional start index to search from. * @param {number} [endIndex=array.length] - An optional end index to search up to (but not included) * - * @return {object} The first matching element from the array, or `null` if no element could be found in the range given. + * @return {?object} The first matching element from the array, or `null` if no element could be found in the range given. */ var GetFirst = function (array, property, value, startIndex, endIndex) {