Ramda Object Methods

Beginner
8 min read
Updated: Nov 2026
55 method guides
Method index

About This Index

This page is the Ramda Object index for the tutorial track. Each row links to a full guide with syntax, examples, and FAQs.

Learn the Ramda overview on /ramdajs. Use this page when you need an object API such as R.prop(), R.assoc(), or R.mergeLeft().

Beginner path.

Start with R.prop() and R.path(), then R.assoc(), R.pick(), and R.mergeLeft()—add lenses when you need focused updates.

How to Call an Object Method

Import R (or a named helper)—data goes last, and updates return new objects:

Ramda
const R = require("ramda");

const user = { id: 1, name: "Ada", meta: { role: "admin" } };

R.prop("name", user);                    // "Ada"
R.path(["meta", "role"], user);          // "admin"
R.assoc("active", true, user);           // { ..., active: true }
R.pick(["id", "name"], user);            // { id: 1, name: "Ada" }
R.omit(["meta"], user);                  // { id: 1, name: "Ada" }
R.mergeLeft({ name: "Grace" }, user);    // name becomes "Grace"
R.evolve({ name: R.toUpper }, user);     // name becomes "ADA"

Ramda Object Methods Table

All Object method guides in this Ramda tutorial series (55 tutorials).

Getting Started

6 methods

Read, set, remove, and slice object keys — the first helpers in a Ramda tutorial.

MethodDescriptionTutorial
R.prop()Read one property or array index from an object. Official R.prop('x', {x: 100}) is 100.Try it
R.path()Read a nested value by a path array. Returns undefined when any step is missing.Try it
R.assoc()Set or add one property on a shallow clone. Official R.assoc('c', 3, {a: 1, b: 2}) adds c: 3.Try it
R.dissoc()Remove one property on a shallow clone without mutating the original object.Try it
R.pick()Keep only the listed keys on a new object. Drops every other property.Try it
R.omit()Remove the listed keys on a new object. Keeps every other property.Try it

Nested Paths

6 methods

Work with nested keys using path arrays instead of manual drilling.

MethodDescriptionTutorial
R.assocPath()Set a nested value by path on a shallow clone. Creates missing intermediate objects.Try it
R.dissocPath()Tutorial for the Ramda.js dissoc path object helper.Try it
R.pathOr()Read a nested path or return a fallback when the value is missing.Try it
R.paths()Tutorial for the Ramda.js paths object helper.Try it
R.hasPath()Tutorial for the Ramda.js has path object helper.Try it
R.modifyPath()Tutorial for the Ramda.js modify path object helper.Try it

Immutable Updates

5 methods

Change values on clones with modify, set, over, evolve, and deep clone.

MethodDescriptionTutorial
R.modify()Apply a function to one property value on a shallow clone of the object.Try it
R.set()Tutorial for the Ramda.js set object helper.Try it
R.over()Tutorial for the Ramda.js over object helper.Try it
R.evolve()Transform selected properties with functions. Unlisted keys are copied by reference.Try it
R.clone()Deep-clone arrays, objects, dates, regexes, and other Ramda-supported values.Try it

Merge Helpers

8 methods

Combine objects shallowly or deeply, with optional custom merge rules.

MethodDescriptionTutorial
R.mergeLeft()Merge two objects; left-side keys win on conflicts. Returns a new object.Try it
R.mergeRight()Merge two objects; right-side keys win on conflicts. Returns a new object.Try it
R.mergeWith()Tutorial for the Ramda.js merge with object helper.Try it
R.mergeWithKey()Tutorial for the Ramda.js merge with key object helper.Try it
R.mergeDeepLeft()Tutorial for the Ramda.js merge deep left object helper.Try it
R.mergeDeepRight()Tutorial for the Ramda.js merge deep right object helper.Try it
R.mergeDeepWith()Tutorial for the Ramda.js merge deep with object helper.Try it
R.mergeDeepWithKey()Tutorial for the Ramda.js merge deep with key object helper.Try it

Keys & Values

6 methods

List keys, values, and key-value pairs from objects.

MethodDescriptionTutorial
R.keys()Tutorial for the Ramda.js keys object helper.Try it
R.keysIn()Tutorial for the Ramda.js keys in object helper.Try it
R.values()Tutorial for the Ramda.js values object helper.Try it
R.valuesIn()Tutorial for the Ramda.js values in object helper.Try it
R.toPairs()Tutorial for the Ramda.js to pairs object helper.Try it
R.toPairsIn()Tutorial for the Ramda.js to pairs in object helper.Try it

Transform Objects

8 methods

Map, rename, invert, unwind, and walk object entries functionally.

MethodDescriptionTutorial
R.mapObjIndexed()Tutorial for the Ramda.js map obj indexed object helper.Try it
R.mapKeys()Tutorial for the Ramda.js map keys object helper.Try it
R.renameKeys()Tutorial for the Ramda.js rename keys object helper.Try it
R.forEachObjIndexed()Tutorial for the Ramda.js for each obj indexed object helper.Try it
R.invert()Tutorial for the Ramda.js invert object helper.Try it
R.invertObj()Tutorial for the Ramda.js invert obj object helper.Try it
R.unwind()Tutorial for the Ramda.js unwind object helper.Try it
R.objOf()Tutorial for the Ramda.js obj of object helper.Try it

Pick & Project

5 methods

Keep fields by name, predicate, or projection shape.

MethodDescriptionTutorial
R.pickAll()Tutorial for the Ramda.js pick all object helper.Try it
R.pickBy()Tutorial for the Ramda.js pick by object helper.Try it
R.project()Tutorial for the Ramda.js project object helper.Try it
R.props()Tutorial for the Ramda.js props object helper.Try it
R.propOr()Read one property or return a fallback when the value is missing.Try it

Has & Spec Match

6 methods

Test property presence and match objects against specs.

MethodDescriptionTutorial
R.has()Tutorial for the Ramda.js has object helper.Try it
R.hasIn()Tutorial for the Ramda.js has in object helper.Try it
R.eqProps()Tutorial for the Ramda.js eq props object helper.Try it
R.where()Tutorial for the Ramda.js where object helper.Try it
R.whereEq()Check whether an object matches a flat spec with strict equality on each key.Try it
R.whereAny()Tutorial for the Ramda.js where any object helper.Try it

Lenses

5 methods

Focus on one slot with lenses, then view, set, over, or modify through them.

MethodDescriptionTutorial
R.lens()Tutorial for the Ramda.js lens object helper.Try it
R.lensProp()Build a lens focused on one object property for view, set, over, and modify.Try it
R.lensPath()Tutorial for the Ramda.js lens path object helper.Try it
R.lensIndex()Tutorial for the Ramda.js lens index object helper.Try it
R.view()Read the focus of a lens from a structure without manual path drilling.Try it

Frequently Asked Questions

They are curried helpers for reading, updating, merging, and transforming plain objects immutably—R.prop, R.path, R.assoc, R.pick, R.omit, R.evolve, R.mergeLeft, lenses, and more.
R.assoc sets one top-level key on a shallow clone. R.assocPath sets a nested value with a path array such as ['user', 'name']. Both return new objects.
R.pick keeps only the keys you list. R.omit removes the keys you list and keeps everything else. Pick when you know what you want; omit when you know what to drop.
Both merge into a new object. mergeLeft keeps left-side values on conflicts; mergeRight keeps right-side values.
Start with R.prop() and R.path(), then R.assoc(), R.pick(), and R.mergeLeft() from the table below.

Start with R.prop()

Open the prop guide—syntax, examples, and FAQs.

R.prop() tutorial →

About the author

Mari Selvan M P
Mari Selvan M P 🔗

Developer, cloud engineer, and technical writer

  • Experience 12 years building web and cloud systems
  • Focus Full Stack Development, AWS, and Developer Education

I write practical tutorials so students and working developers can learn by doing—from databases and APIs to deployment on AWS.

16 people found this page helpful