Skip to content

divide ​

divide() divides a wrapped Number by a divisor validated with the NotZero constraint. Supports the curried version.

Interactive example ​

Syntax ​

Classic signature ​

typescript
function divide(
	value: Number, 
	divisor: NotZero
): Number

Curried signature ​

typescript
function divide(
	divisor: NotZero
): (value: Number) => Number

Parameters ​

  • value : base value (classic signature only).
  • divisor : divisor validated with C.NotZero.

Return value ​

A wrapped Number containing the quotient.

See also ​

Released under the MIT license.