Ramda.js R.F() Method

Beginner
5 min read
Updated: Nov 2026
5 examples
Function

Definition

A function that always returns false. Arguments are ignored. Part of Ramda Function since v0.9.0 (stable — not deprecated, experimental, or non-standard).

Note: false is a boolean; R.F is a function that returns that boolean. Pass R.F where APIs expect a predicate or callback.

Syntax

Call R.F. Start with this line.

Ramda
R.F() or pass R.F as a callback Official R.F() → false
CallWhat it does
R.F() or pass R.F as a callback Official R.F() → falsePrimary signature.
R.F(...)Call the function helper.

Prefer import { f } from "ramda" when you want a named import.

Library declarations
Ramda
R.F() or pass R.F as a callback Official R.F() → false

Parameters

ParameterDescription
Any argsOptional. Ignored completely

Return Value

Return ValueDescription
*Always the boolean false

Ramda Examples

Example 1 — Official R.F()

Call the helper with no arguments — the Ramda docs sample.

Ramda
console.log(R.F());
// → false
Try It Yourself

How It Works

  1. Ready-made. R.F is already a function — nothing to configure.
  2. Call. R.F() runs and returns false.
  3. No wrap. You do not pass a value into R.F the way you do with R.always.
  4. Docs. That one line is the full official sample.

Example 2 — Arguments Are Ignored

Type idea: anything in, false out.

Ramda
console.log(R.F());
// → false

console.log(R.F(1, 2, 3));
// → false

console.log(R.F('yes'));
// → false
Try It Yourself

How It Works

  1. No args. Still false.
  2. Many args. 1, 2, 3 are discarded → false.
  3. Truthy input. Even 'yes' cannot change the return.
  4. Why it helps. Predicates like R.filter pass each item in; R.F ignores them.

Example 3 — R.F vs R.T vs R.always(false)

Three helpers, two booleans.

Ramda
console.log(R.F());
// → false

console.log(R.always(false)());
// → false

console.log(R.T());
// → true
Try It Yourself

How It Works

  1. F. Named constant-false function.
  2. always. R.always(false)() builds the same idea for any value.
  3. T. Twin helper that always returns true.
  4. Prefer. Use R.F / R.T for booleans; use R.always for other constants.

Example 4 — Filter None, Map False

A never-true predicate empties a filter; mapping fills with false.

Ramda
console.log(R.filter(R.F, [1, 2, 3]));
// → []

console.log(R.filter(R.T, [1, 2, 3]));
// → [1, 2, 3]

console.log(R.map(R.F, [1, 2, 3]));
// → [false, false, false]
Try It Yourself

How It Works

  1. Filter F. Keeps an item only when the predicate is truthy — never → [].
  2. Filter T. Always truthy → keeps the whole list.
  3. Map F. Does not filter; replaces each item with false.
  4. Contrast. Empty list vs list of false — different helpers, different jobs.

Example 5 — Always Take the Else Branch

R.ifElse needs a predicate function; R.F makes the “yes” branch unreachable.

Ramda
const label = R.ifElse(
  R.F,
  R.always('yes'),
  R.always('no')
);

console.log(label(0));
// → 'no'

console.log(label(99));
// → 'no'
Try It Yourself

How It Works

  1. Predicate. R.ifElse calls R.F with the input.
  2. Always false. Both 0 and 99 take the else branch.
  3. Else runs. R.always('no') returns 'no'.
  4. Use. Handy when stubbing a branch during tests or demos.

Browser & Runtime Support

R.F is a Ramda Function helper since v0.9.0. It runs anywhere Ramda runs — modern browsers (CDN or bundle) and Node.js / Bun / Deno with npm install ramda.

✓ Stable · Ramda 0.9.0+

R.F()

Available in long-standing Ramda builds. Works in evergreen browsers and current Node LTS when Ramda is installed.

100% With Ramda 0.9.0+
Google Chrome Supported · Desktop & Mobile
Full support
Mozilla Firefox Supported · Desktop & Mobile
Full support
Apple Safari Supported · macOS & iOS
Full support
Microsoft Edge Supported · Chromium
Full support
Internet Explorer No native support · Use a polyfill
Polyfill
Opera Supported · Modern versions
Full support
Samsung Internet Supported · Android
Full support
Bun Supported · JavaScript runtime
Supported
Deno Supported · JavaScript runtime
Supported
Node.js Supported · Server runtime
Supported
Android WebView Supported · Modern WebView
Full support
R.F Ramda 0.9.0+

Bottom line: Safe for production once Ramda is loaded. Use a CDN build such as ramda.min.js in the browser, or install ramda from npm for Node.

Frequently Asked Questions

R.F is a function that always returns false. Any arguments you pass are ignored. The docs sample is R.F(); //=> false. Added in v0.9.0. See also R.T, which always returns true.
R.F(); //=> false. That is the whole docs sample. You can also call R.F(1, 2, 3) and still get false.
false is a boolean. R.F is a function that returns that boolean. APIs such as R.filter, R.ifElse, and R.when need a function, so you pass R.F, not the raw value false.
R.F() and R.always(false)() both return false. R.T() always returns true. Prefer R.F and R.T when the constant is a boolean; they are shorter and named for that job.
An empty array. R.filter keeps items for which the predicate is true. R.F is never true, so every item is dropped.
No. R.F is a stable Ramda function helper from v0.9.0. It is not deprecated, experimental, or non-standard.

Next: R.flip()

Learn how to swap the first two arguments of a function.

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

6 people found this page helpful