Update GetFirst.js

Improve type accuracy for GetFirst
This commit is contained in:
Chris 2023-12-02 15:38:05 -05:00 committed by GitHub
parent 47d393ac29
commit c048c1bb54
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)
{