A list function that answers one yes-or-no question: does no item pass this test?R.none(fn, list) returns true when fn never matches, and false as soon as one item does. It is the Ramda version of !array.some(fn).
Status: stable since Ramda v0.12.0 — not deprecated, experimental, or non-standard.
Syntax
Call R.none. Start with this line.
Ramda
R.none(fn, list)
Call
What it does
R.none(fn, list)
Primary signature.
R.none(...)
Call the list helper.
Prefer import { none } from "ramda" when you want a named import.
Library declarations
Ramda
R.none(fn, list)
Parameters
Parameter
Description
fn
Required. Test function, called with one item at a time
list
Required. The array to check (never changed)
Return Value
Return Value
Description
*
true if no item passes, otherwise false
Ramda Examples
Example 1 — Official: No Evens, Then No Odds
The two samples from the Ramda docs.
Ramda
const isEven = n => n % 2 === 0;
const isOdd = n => n % 2 !== 0;
console.log(R.none(isEven, [1, 3, 5, 7, 9, 11])); // → true
console.log(R.none(isOdd, [1, 3, 5, 7, 8, 11])); // → false
Reuse. The first list has no blanks → true; the second has "" → false.
Compatibility
Browser & Runtime Support
R.none was added in Ramda v0.12.0. Ramda’s browser build is plain ES5, so it runs in any modern browser and in Node.js / Bun / Deno with npm install ramda.
✓ Stable · Ramda 0.12.0+
R.none()
A simple loop over the list, so no special browser API is needed. It has been part of Ramda for many years, so almost every project version includes it.
100%With Ramda 0.12.0+
Google ChromeSupported · Desktop & Mobile
Full support
Mozilla FirefoxSupported · Desktop & Mobile
Full support
Apple SafariSupported · macOS & iOS
Full support
Microsoft EdgeSupported · Chromium
Full support
Internet ExplorerNo native support · Use a polyfill
Polyfill
OperaSupported · Modern versions
Full support
Samsung InternetSupported · Android
Full support
BunSupported · JavaScript runtime
Supported
DenoSupported · JavaScript runtime
Supported
Node.jsSupported · Server runtime
Supported
Android WebViewSupported · Modern WebView
Full support
R.noneRamda 0.12.0+
Bottom line: Safe for production with any modern Ramda release. The labs on this page use [email protected].
Frequently Asked Questions
R.none(fn, list) returns true when no item in the list passes the test fn, and false as soon as one item does. Docs sample: R.none(isEven, [1, 3, 5, 7, 9, 11]) //=> true.
true. An empty list has no items, so no item can match. If an empty list should count as a failure, check the length first: xs.length > 0 && R.none(fn, xs).
R.none is true when zero items pass. R.all is true when every item passes. R.any is true when at least one item passes. R.none(fn, list) always equals !R.any(fn, list), but it is not the same as !R.all(fn, list).
Only when nothing matches. It walks the list from left to right and returns false at the first item that passes the test, so the remaining items are never checked.
!array.some(fn). R.none puts the test first and is curried, so R.none(fn) gives you a reusable checker that waits for a list.
No. R.none has been a stable Ramda list function since v0.12.0 — not deprecated, experimental, or non-standard.