[Solved] AWS S3 JS SDK TypeError: readableStream.getReader is not a function

Recently I faced a problem with AWS Cogntio JS SDK V3 for S3 buckets. While calling PutObjectCommand from SDK, an error occurs with the message TypeError: readableStream.getReader is not a function. On googling the error, I found this GitHub thread Angular 19 PutObjectRequest readableStream.getReader is not a function, where repo maintainers confirmed that the issue … Read more

Pure Vs Impure Functions In Javascript

Pure vs Impure function in Javascript

In this post, we will see the difference between pure functions and high-order functions in javascript. What are Pure Functions in Javascript? Functions which does not produce side effect are called pure function. This means that it does not depend on any external variable (like global). Also, it does not modify any external variable. Such … Read more

Everything About useState Hook in React

useState Hook React

useState is one of the first hooks I came across while learning React. It is easy to understand/use but equally fascinating/confusing at the same time ( just on click of a button, things update on-screen 😮).  Let’s dive in!!! Why useState Hook? React does not detect change in normal variables that’s why useState hook is required. … Read more