Ramda Type Methods

Beginner
5 min read
Updated: Nov 2026
5 method guides
Method index

About This Index

This page is the Ramda Type 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 a type API such as R.is(), R.type(), or R.isNil().

Beginner path.

Start with R.is() and R.type(), then R.isNil()—add R.propIs() when filtering records by field type.

How to Call a Type Method

Import R (or a named helper)—check constructors, tags, and nil with data last:

Ramda
const R = require("ramda");

R.is(Object, {});           // true
R.is(Number, 1);            // true
R.is(Object, 1);            // false

R.type({});                 // "Object"
R.type(null);               // "Null"
R.type(undefined);          // "Undefined"

R.isNil(null);              // true
R.isNil(0);                 // false
R.isNotNil(0);              // true

R.propIs(Number, "age", { age: 30 }); // true

Ramda Type Methods Table

All Type method guides in this Ramda tutorial series (5 tutorials).

Getting Started

2 methods

Constructor checks and type tags — the two core ways a Ramda tutorial answers "what is this?"

MethodDescriptionTutorial
R.is()Boolean constructor check. Official R.is(Object, {}) is true; R.is(Object, 1) is false.Try it
R.type()Capitalized native tag string. Official R.type({}) returns 'Object'; R.type(null) returns 'Null'.Try it

Null & Undefined

2 methods

Test for missing values without mixing up zero, false, or empty strings.

MethodDescriptionTutorial
R.isNil()True when the value is null or undefined. Official R.isNil(null) is true.Try it
R.isNotNil()True when the value is neither null nor undefined. Official R.isNotNil(0) is true.Try it

Property Type

1 method

Check the constructor of one field on an object record.

MethodDescriptionTutorial
R.propIs()Check whether one property is an instance of a constructor. Ideal for filter and find predicates.Try it

Frequently Asked Questions

They are curried helpers for checking what a value is: R.is tests a constructor, R.type returns a capitalized native tag, R.isNil / R.isNotNil test null and undefined only, and R.propIs checks one property on an object.
R.is(Constructor, val) returns true or false for a specific constructor—including primitives like Number and String. R.type(val) returns a string tag such as 'Object', 'Number', 'Null', or 'Undefined'.
Use R.isNil when you only care about null and undefined. Zero, false, and empty strings are not nil. R.isNotNil keeps present values even when they are falsy.
R.is checks the whole value. R.propIs(Constructor, propertyName, object) checks one field on a record—ideal for filter and find predicates.
Start with R.is() and R.type(), then R.isNil() and R.propIs() from the table below.

Start with R.is()

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

R.is() 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