less or equal
Updated on August 22, 2024Source codeTests
createLessOrEqual is a pipe that transforms a number to a boolean indicating whether or not it is less than or equal to a given threshold.
Create less than
Call createLessOrEqual with these parameters to create your lessOrEqual function:
Parameter
Type
Required
Description
thresholdnumber
yes
The threshold to compare against.