Module

x/rambda/index.d.ts>both

Faster and smaller alternative to Ramda
Go to Latest
function both
import { both } from "https://dotland.deno.dev/x/rambda@v9.2.0/index.d.ts";

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: Predicate<T>
pred2: Predicate<T>

Returns

Predicate<T>

Parameters

pred1: Predicate<T>

Returns

(pred2: Predicate<T>) => Predicate<T>

Parameters

pred1: Pred

Returns

(pred2: Pred) => Pred