Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/rambda/rambda.js>both

Faster and smaller alternative to Ramda
Go to Latest
function both
import { both } from "https://deno.land/x/rambda@9.3.0/rambda.js";

It returns a function with input argument.

This function will return true, if both firstCondition and secondCondition return true when input is passed as their argument.

Parameters

pred1: Pred
pred2: Pred

Parameters

pred1: Pred

Returns

(pred2: Pred) => Pred