<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Rajendra Furde on Medium]]></title>
        <description><![CDATA[Stories by Rajendra Furde on Medium]]></description>
        <link>https://medium.com/@webrajendra?source=rss-b9367a246911------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*2ike6-ERDYyHBbCUEBu1lA.jpeg</url>
            <title>Stories by Rajendra Furde on Medium</title>
            <link>https://medium.com/@webrajendra?source=rss-b9367a246911------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 10:52:06 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@webrajendra/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Map, Reduce and Filter in Javascript]]></title>
            <link>https://medium.com/@webrajendra/map-reduce-and-filter-in-javascript-e0abd165f983?source=rss-b9367a246911------2</link>
            <guid isPermaLink="false">https://medium.com/p/e0abd165f983</guid>
            <category><![CDATA[filters]]></category>
            <category><![CDATA[maps]]></category>
            <category><![CDATA[reduce]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Rajendra Furde]]></dc:creator>
            <pubDate>Sun, 09 Apr 2023 11:10:42 GMT</pubDate>
            <atom:updated>2023-04-09T11:10:42.352Z</atom:updated>
            <content:encoded><![CDATA[<p>Map, reduce, and filter are three commonly used higher-order functions in functional programming languages that are used to transform and manipulate collections of data. These functions operate on collections of data, such as lists or arrays, and can be used to perform a variety of operations on the data.</p><p>Map: The map function applies a given function to each element in a collection and returns a new collection containing the results. For example, if we have a list of numbers [1, 2, 3, 4, 5] and we want to double each number in the list, we could use the map function to apply the function val * 2 to each element in the list, resulting in a new list [2, 4, 6, 8, 10].</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/350/1*scH_OI-ts9jYW2KEvmCKjw.png" /><figcaption>Example of Map Method</figcaption></figure><p>Reduce: The reduce function takes a collection of data and reduces it down to a single value by applying a given function to each element in the collection. The function takes two arguments: an accumulator and the current element in the collection. The accumulator is initialized to a starting value and is updated with each iteration of the function. For example, if we have a list of numbers [1, 2, 3, 4, 5] and we want to sum all the numbers in the list, we could use the reduce function to apply the function (val1, val2) =&gt; val1 + val2 to each element in the list, resulting in a final value of 15.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/297/1*0VG-8crQhAQMvdAIbGMGMg.png" /></figure><p>Filter: The filter function takes a collection of data and returns a new collection containing only the elements that meet a certain condition. For example, if we have a list of numbers [1, 2, 3, 4, 5] and we want to filter out all the even numbers, we could use the filter function to apply the condition val &lt; 4 to each element in the list, resulting in a new list [1,2, 3].</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/319/1*eoiMZzg1xXIKjrRpX94NjA.png" /><figcaption>Example of Filter Method</figcaption></figure><p>Overall, these functions are powerful tools for manipulating and transforming data in functional programming languages, and are widely used in data processing and analysis applications.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e0abd165f983" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What is callback function in Javascript]]></title>
            <link>https://medium.com/@webrajendra/what-is-callback-function-in-javascript-e2b98e351959?source=rss-b9367a246911------2</link>
            <guid isPermaLink="false">https://medium.com/p/e2b98e351959</guid>
            <category><![CDATA[callback-function]]></category>
            <category><![CDATA[javascript-callback]]></category>
            <dc:creator><![CDATA[Rajendra Furde]]></dc:creator>
            <pubDate>Mon, 03 Apr 2023 03:41:02 GMT</pubDate>
            <atom:updated>2023-04-03T03:41:02.396Z</atom:updated>
            <content:encoded><![CDATA[<p>In Javascript, a callback function is a function that is passed as an argument to another function and that will be executed after some event or action occures.</p><p>The callback function is used to ensure that a certain code will be executed after another code execution finished.</p><p>Example : —</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/245/1*Op5ddXIxCR3H1QoF_8rphQ.png" /><figcaption>Function 1</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/192/1*zYlrBeaZz7wGzFtysK0p2w.png" /><figcaption>Function 2</figcaption></figure><p>We have created 2 different functions to use these functions in another function as parameter / arguments.</p><p>We created “add” function with 2 parameters and added new parameter as “callback” and we are executed that in a function.</p><p>In this function we are doing addition of 2 numbers and executing new function as well.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/311/1*AodegMvmvesEFBdymZHEtQ.png" /></figure><p>Now we will what will be the output of above function execution :</p><p>In this function we have created new variables for values and accesing those in functions with callback function.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/161/1*dps6deqVmrbZF_JLd_aVBA.png" /></figure><p>If we console log add function with these — <strong><em>(20+40) = 60, Hello</em></strong> will be printed.</p><p>We can pass any different values in add function with another callback function like —</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/143/1*qFDjJ7IWftun8qjMaLkKZw.png" /></figure><p>In the above execution it will work like same but we are calling different callback function here, so output will be —<strong><em> 15 Hi</em></strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e2b98e351959" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Higher Order Function in JavaScript]]></title>
            <link>https://medium.com/@webrajendra/higher-order-function-in-javascript-2a965ce22625?source=rss-b9367a246911------2</link>
            <guid isPermaLink="false">https://medium.com/p/2a965ce22625</guid>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Rajendra Furde]]></dc:creator>
            <pubDate>Tue, 28 Mar 2023 23:21:41 GMT</pubDate>
            <atom:updated>2023-03-28T23:21:41.522Z</atom:updated>
            <content:encoded><![CDATA[<p>In JavaScript, functions are first-class citizens, meaning they can be passed around just like any other data type. A higher-order function is a function that takes one or more functions as arguments, and/or returns a function as its result.</p><p>Some common examples of higher-order functions in JavaScript include map, filter, and reduce. These functions take an array and a function as arguments, and use the function to perform some operation on each element in the array.</p><p>You will get whole idea about higher-order function in JavaScript with following examples :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/829/1*6-dvx4k5vWbvnCHxT6keMA.png" /></figure><p>In this example, the multiplyBy function is a higher-order function that takes a single argument factor. It returns a new function that multiplies its argument by the factor .</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2a965ce22625" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>