Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
Size: Mime:
/**
 * @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;