Ramda Type Methods
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().
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:
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 methodsConstructor checks and type tags — the two core ways a Ramda tutorial answers "what is this?"
Null & Undefined
2 methodsTest for missing values without mixing up zero, false, or empty strings.
| Method | Description | Tutorial |
|---|---|---|
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 methodCheck the constructor of one field on an object record.
| Method | Description | Tutorial |
|---|---|---|
R.propIs() | Check whether one property is an instance of a constructor. Ideal for filter and find predicates. | Try it |
Frequently Asked Questions
Start with R.is()
Open the is guide—syntax, examples, and FAQs.
16 people found this page helpful
