import _curry2 from './internal/_curry2';
import path from './path';


/**
 * Returns a function that when supplied an object returns the indicated
 * property of that object, if it exists.
 *
 * @func
 * @memberOf R
 * @since v0.1.0
 * @category Object
 * @sig s -> {s: a} -> a | Undefined
 * @param {String} p The property name
 * @param {Object} obj The object to query
 * @return {*} The value at `obj.p`.
 * @see R.path
 * @example
 *
 *      R.prop('x', {x: 100}); //=> 100
 *      R.prop('x', {}); //=> undefined
 *      R.map(R.prop('length'), ['Elephant', 'Penguin']) //=> [8, 7]
 */

var prop = _curry2(function prop(p, obj) { return path([p], obj); });
export default prop;

@@ -527,66 +527,53 @@
   R.
-map(R.prop('length'), %5B'Elephant', 'Penguin'%5D
+compose(R.inc, R.prop('x'))(%7B x: 3 %7D
 ) //=%3E 
-%5B8, 7%5D
+4 
 %0A */

Change example from map prop to compose inc