DevOps Articles

Curated articles, resources, tips and trends from the DevOps World.

Javascript – Currying VS Partial Application

3 years ago stackify.com
Javascript – Currying VS Partial Application

Summary: This is a summary of an article originally published by Stackify. Read the full original article here →

Partial application and currying are two ways to transform one function into another. Many people get confused and are unable to differentiate between partial application and currying.

Application in JavaScript means that a function is applied to its argument and produces a return value.

This means that a function is taking another function with multiple parameters and returning a function with very few parameters.

It is straightforward to implement your.bind method, but it is even easier if you use the build-in.apply method in JavaScript.

Made with pure grit © 2024 Jetpack Labs Inc. All rights reserved. www.jetpacklabs.com