<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Abdus Shobhan</title>
    <description>The latest articles on DEV Community by Abdus Shobhan (@abdus_shobhan_d8fbbf302ce).</description>
    <link>https://dev.to/abdus_shobhan_d8fbbf302ce</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F2507378%2Fcff1c358-a94b-4600-9cb2-d92ae8864712.jpeg</url>
      <title>DEV Community: Abdus Shobhan</title>
      <link>https://dev.to/abdus_shobhan_d8fbbf302ce</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/abdus_shobhan_d8fbbf302ce"/>
    <language>en</language>
    <item>
      <title>TypeScript</title>
      <dc:creator>Abdus Shobhan</dc:creator>
      <pubDate>Sun, 01 Dec 2024 15:21:48 +0000</pubDate>
      <link>https://dev.to/abdus_shobhan_d8fbbf302ce/typescript-1gan</link>
      <guid>https://dev.to/abdus_shobhan_d8fbbf302ce/typescript-1gan</guid>
      <description>&lt;p&gt;generic function to allow for a function that works with different data types. Here's a basic example of a generic function that takes an argument of any type and returns it:&lt;br&gt;
typescript&lt;/p&gt;

&lt;p&gt;Copy code&lt;br&gt;
function identity(arg: T): T {&lt;br&gt;
    return arg;&lt;br&gt;
}&lt;/p&gt;

&lt;p&gt;// Example usage:&lt;br&gt;
let output1 = identity("Hello, TypeScript!");&lt;br&gt;
let output2 = identity(42);&lt;br&gt;
let output3 = identity(true);&lt;/p&gt;

&lt;p&gt;console.log(output1); // Output: Hello, TypeScript!&lt;br&gt;
console.log(output2); // Output: 42&lt;br&gt;
console.log(output3); // Output: true&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
