Calls a function with an array of arguments spread as separate parameters — equivalent to fn(...args). Handy for turning a variadic function into a fixed-arity step that accepts a list. Part of Ramda Function since v0.7.0 (stable — not deprecated).
Note: If this matters, bind the function first (R.bind or fn.bind(ctx)). See also R.call and R.unapply.
Syntax
Call R.apply. Start with this line.
Ramda
R.apply(fn, args) or R.apply(fn)(args)
Call
What it does
R.apply(fn, args) or R.apply(fn)(args)
Primary signature.
R.apply(...)
Call the function helper.
Prefer import { apply } from "ramda" when you want a named import.
Library declarations
Ramda
R.apply(fn, args) or R.apply(fn)(args)
Parameters
Parameter
Description
fn
Required. Function to call with the spread arguments
args
Required. Array of arguments for fn
Return Value
Return Value
Description
*
Whatever fn(...args) returns
Ramda Examples
Example 1 — Official Math.max
Spread a number list into Math.max to find the largest value.
Curried apply.R.apply(Math.max) waits for that list.
Spread.Math.max(10, 3, 8) → 10.
Pipe fit. Docs note this pattern turns variadic fns into list-friendly steps.
Compatibility
Browser & Runtime Support
R.apply is a Ramda Function helper since v0.7.0. It runs anywhere Ramda runs — modern browsers (CDN or bundle) and Node.js / Bun / Deno with npm install ramda.
✓ Stable · Ramda 0.7.0+
R.apply()
Available in full Ramda builds from v0.7.0 onward. Works in evergreen browsers and current Node LTS when Ramda is loaded.
100%With Ramda 0.7+
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.applyRamda 0.7.0+
Bottom line: Safe for production once Ramda is loaded. Ideal for Math.max / Math.min and other variadic APIs that need a list spread. Official reference: ramdajs.com/docs/#apply.
Frequently Asked Questions
R.apply(fn, args) calls fn with the values in the args array as separate arguments. It is equivalent to fn(...args). Official: R.apply(Math.max, [1, 2, 3, -99, 42, 6, 7]) → 42.