Repository URL to install this package:
|
Version:
6.0.4 ▾
|
/**
* @desc first fn & second fn
* @memberOf conditional
* @since 4.0.1
*
* @param {Function} left first fn
* @param {Function} right second fn
* @return {Function | boolean} both functions return truthy @curried
*
* @curried
* @name and
* @alias both
* @func
*
* @example
*
* const both = and(x => typeof x === 'boolean', x => x === true)
*
* both([true])
* //=> true
*
* both([false])
* //=> false
*
* both([1])
* //=> false
*
*/
export interface Return<Value> {
(...args: any[]): Value;
(): Value;
}
export interface And<Value = any> {
(left: Return<true | false>, right: Return<true | false>): (x: Value) => boolean;
}
declare const _default: import("../fp/curry").CurriedFunction2<{}, {}, (x: any) => boolean>;
export default _default;