multiply (Functional Programming) es-toolkit
Creates a function that multiplies its input by a number. Use it with pipe.
Info
This helper is specific to es-toolkit/fp. Use it when you want this operation as part of a pipe pipeline.
Usage
multiply returns a function that multiplies its input by multiplicand. It is designed for composition: it can transform the value flowing through a pipe, or serve as the callback of a function such as map.
Parameters
multiplicandnumberrequired
The number to multiply the input by.
Returns
A function that maps value to value * multiplicand.
Source: es-toolkit
Re-exported verbatim from es-toolkit. Implementation, edge cases, and performance behavior are owned upstream. This page mirrors the documentation at the pinned version; the linked source is authoritative.