Skip to content

add ​

add() adds two Number (wrapped or raw). Supports the curried version to be used easily in a pipe.

Interactive example ​

Syntax ​

Classic signature ​

typescript
function add(
	value: Number, 
	operand: Number | number
): Number

Curried signature ​

typescript
function add(
	operand: Number | number
): (value: Number) => Number

Parameters ​

  • value : base value (classic signature only).
  • operand : operand to add.

Return value ​

A wrapped Number containing the sum.

See also ​

Released under the MIT license.