Skip to main content
Glama

mcp-appstore

by appreply-co
allPass.js1.27 kB
var _curry1 = require('./internal/_curry1'); var curryN = require('./curryN'); var max = require('./max'); var pluck = require('./pluck'); var reduce = require('./reduce'); /** * Takes a list of predicates and returns a predicate that returns true for a * given list of arguments if every one of the provided predicates is satisfied * by those arguments. * * The function returned is a curried function whose arity matches that of the * highest-arity predicate. * * @func * @memberOf R * @since v0.9.0 * @category Logic * @sig [(*... -> Boolean)] -> (*... -> Boolean) * @param {Array} preds * @return {Function} * @see R.anyPass * @example * * var isQueen = R.propEq('rank', 'Q'); * var isSpade = R.propEq('suit', '♠︎'); * var isQueenOfSpades = R.allPass([isQueen, isSpade]); * * isQueenOfSpades({rank: 'Q', suit: '♣︎'}); //=> false * isQueenOfSpades({rank: 'Q', suit: '♠︎'}); //=> true */ module.exports = _curry1(function allPass(preds) { return curryN(reduce(max, 0, pluck('length', preds)), function() { var idx = 0; var len = preds.length; while (idx < len) { if (!preds[idx].apply(this, arguments)) { return false; } idx += 1; } return true; }); });

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/appreply-co/mcp-appstore'

If you have feedback or need assistance with the MCP directory API, please join our Discord server