<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/what-is-currying-in-javascript--rr7ntx0oj" -->

---
title: What is Currying in JavaScript? | daily.dev
description: In JavaScript, functions are treated as 'First Class' citizens. This means that any function can be returned to another function, since a function is...
canonical: https://daily.dev/posts/what-is-currying-in-javascript--rr7ntx0oj
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: What is Currying in JavaScript? | daily.dev
og:description: In JavaScript, functions are treated as 'First Class' citizens. This means that any function can be returned to another function, since a function is...
og:url: https://daily.dev/posts/what-is-currying-in-javascript--rr7ntx0oj
og:image: https://api.daily.dev/og/posts/rr7nTX0oJ.png
og:image:alt: What is Currying in JavaScript?
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# What is Currying in JavaScript?

**[daily.dev](https://daily.dev/sources/daily)** · [@skay](https://daily.dev/skay) · 12 upvotes · 4 comments

## Summary

In JavaScript, functions are treated as 'First Class' citizens. This means that any function can be returned to another function, since a function is fundamentally an object. 'Currying' is the process of decomposing a function into a sequence of functions that each take a single argument. In this article, we will first look at what first-class citizens and higher-order functions are.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://daily.dev/posts/what-is-currying-in-javascript>

## Community discussion

Top comments from developers on daily.dev.

**@skay** · 2 upvotes

> Some practical examples are provided with the article to reinforce concepts. Must read for folks who want to know about Currying.

---

Tags: [#general-programming](https://daily.dev/tags/general-programming), [#javascript](https://daily.dev/tags/javascript)

[View this post on daily.dev](https://daily.dev/posts/what-is-currying-in-javascript--rr7ntx0oj)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"What is Currying in JavaScript?","url":"https://daily.dev/posts/what-is-currying-in-javascript--rr7ntx0oj","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/what-is-currying-in-javascript--rr7ntx0oj"},"datePublished":"2020-10-09T13:00:18.093Z","dateModified":"2021-10-07T14:17:10.317Z","description":"In JavaScript, functions are treated as 'First Class' citizens. This means that any function can be returned to another function, since a function is...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/047557a3cad079687fc21bce82f56975","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/047557a3cad079687fc21bce82f56975","isAccessibleForFree":true,"articleSection":"daily.dev","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Person","name":"Skay","url":"https://daily.dev/skay","image":"https://avatars0.githubusercontent.com/u/62467382?v=4","description":"Full Stack Developer who loves building Products on the Web","interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"EndorseAction"},"userInteractionCount":1950}},"commentCount":4,"discussionUrl":"https://daily.dev/posts/what-is-currying-in-javascript--rr7ntx0oj","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":12},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":4}],"keywords":"general-programming,javascript"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"daily.dev","item":"https://daily.dev/sources/daily"},{"@type":"ListItem","position":3,"name":"What is Currying in JavaScript?"}]}
{"@context":"https://schema.org","@type":"WebPage","@id":"https://daily.dev/posts/what-is-currying-in-javascript--rr7ntx0oj","comment":[{"@type":"Comment","text":"Some practical examples are provided with the article to reinforce concepts. Must read for folks who want to know about Currying.","datePublished":"2020-10-09T14:09:07.426Z","url":"https://daily.dev/posts/rr7nTX0oJ#c-w3POUFvhn","author":{"@type":"Person","name":"Skay","url":"https://daily.dev/skay","image":"https://avatars0.githubusercontent.com/u/62467382?v=4"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":2}}]}
```

