Skip to main content

Function: plus()

plus(this, left, right): NumberT

Add one number to another. If either the input or argument are not a number, they will be to convert to a number. If that conversion fails, 0 is used instead.

Parameters

this: FilterContext

An object containing a reference to the active render context and any keyword/named arguments.

left: unknown

Any value. If it can't be converted to a number, zero will be used instead.

right: unknown

Any value. If it can't be converted to a number, zero will be used instead.

Returns

NumberT

The result of adding the input value to the argument value.

Defined in

src/builtin/filters/math.ts:188