Skip to main content

Constmaddeq(a: any, b: any): any

Adds two arrays together, but modifies the first array as if a += b.

remarks

This implementation loops in reverse order. The maddeq function should be used with caution due to its destructive nature. We implicitly assume that the second array contains at least as many elements as the first.

Parameters:#

NameTypeDescription
aanyThe augend, first input array-like to add and modify.
banyThe addend, second input array-like to add.

Returns: any

typeof a - The modified input.

Defined in: unsafe/matrix/maddeq.ts:17