method Float16Array.findLast
Jump to headingFloat16Array.findLast<S extends number>(predicate: () => value is S,thisArg?: any,): S | undefinedReturns the value of the last element in the array where predicate is true, and undefined otherwise.
Type Parameters Jump to heading
Jump to headingS extends numberParameters Jump to heading
Jump to headingpredicate: () => value is SfindLast calls predicate once for each element of the array, in descending order, until it finds one where predicate returns true. If such an element is found, findLast immediately returns that element value. Otherwise, findLast returns undefined.
optional
Jump to headingthisArg: anyIf provided, it will be used as the this value for each invocation of predicate. If it is not provided, undefined is used instead.
Return Type Jump to heading
S | undefinedJump to headingFloat16Array.findLast(predicate: () => unknown,thisArg?: any,): number | undefinedParameters Jump to heading
Jump to headingpredicate: () => unknownoptional
Jump to headingthisArg: anyReturn Type Jump to heading
number | undefined