How to use the hasIn function from ramda

Find comprehensive JavaScript ramda.hasIn code examples handpicked from public code repositorys.

2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
 *      Rectangle.prototype.area = function() {
 *        return this.width * this.height;
 *      };
 *
 *      var square = new Rectangle(2, 2);
 *      R.hasIn('width', square);  //=> true
 *      R.hasIn('area', square);  //=> true
 */
var hasIn = _curry2(function hasIn(prop, obj) {
    return prop in obj;
fork icon0
star icon0
watch icon0

+ 35 other calls in file

Other functions in ramda

Sorted by popularity

function icon

ramda.clone is the most popular function in ramda (30311 examples)