@aws/pdk
Version:
All documentation is located at: https://aws.github.io/aws-pdk
35 lines (31 loc) • 767 B
JavaScript
var _curry3 =
/*#__PURE__*/
require("./internal/_curry3.js");
var prop =
/*#__PURE__*/
require("./prop.js");
/**
* Returns `true` if the specified object property satisfies the given
* predicate; `false` otherwise. You can test multiple properties with
* [`R.where`](#where).
*
* @func
* @memberOf R
* @since v0.16.0
* @category Logic
* @sig (a -> Boolean) -> String -> {String: a} -> Boolean
* @param {Function} pred
* @param {String} name
* @param {*} obj
* @return {Boolean}
* @see R.where, R.propEq, R.propIs
* @example
*
* R.propSatisfies(x => x > 0, 'x', {x: 1, y: 2}); //=> true
*/
var propSatisfies =
/*#__PURE__*/
_curry3(function propSatisfies(pred, name, obj) {
return pred(prop(name, obj));
});
module.exports = propSatisfies;