Tag: Javascript

· 1 min read

What is Currying in JavaScript? Advantags of using currying

  1. Calligraphy Authors's Headshot
    Rahulism

    Owner

Currying is a technique of evaluating function with multiple arguments, into sequence of function with single argument. Curyying is a transformation of function that translates a function from callable as f(a, b, c) into callable as f(a)(b)(c). function curry(f) { return function(a) { return function(b) { return f(a,b); }; }; } function sum(a, b) {...
· 2 min read

Write efficient function in JavaScript: What is Memoization?

  1. Calligraphy Authors's Headshot
    Rahulism

    Owner

Memoization is an optimization technique used to speed up programs by storing the results of function calls and returning the cached result when the same inputs occur again. Use Memoization to make your JavaScript functions more efficient — RAHUL (@rahxul) March 31, 2021 So in this post, I’m going to discuss with you What is Memoization in...