Javascript Library Articles

Found 172 articles

How to Convert Base64 to JSON String in JavaScript?

Pankaj Kumar Bind
Pankaj Kumar Bind
Updated on 03-Jan-2025 1K+ Views

Base64 encoding is widely used as an ASCII string to represent binary data. However, converting Base64 strings to JSON is a common data exchange specification. This is because JSON is a human-readable format and is easily converted into JavaScript. In this article, we will explore methods to convert Base64 string to JSON string by giving examples and output for each. What is Base64? Base64 is a type of encoding scheme that represents binary data in an ASCII string. It generally gets used to encode an image, file, or other non-textual data to transfer safely across a text-based protocol like ...

Read More

How to Filter Object by Values in Lodash?

AYUSH MISHRA
AYUSH MISHRA
Updated on 31-Dec-2024 5K+ Views

Sometimes we are given an object and we want to extract only the key-value pairs that meet certain criteria. In this article, we are going to discuss how we can filter objects by values in Lodash. Prerequisite Lodash: Lodash is a popular JavaScript library used to deal with a variety of functions such as arrays, objects, strings, and more. Install Lodash We can install the Lodash library in the project by adding it via CDN or npm using the following command: npm install lodash Approaches to Filter Object by Values ...

Read More

A Guide To Server-Side Rendering In React

Payal Mittal
Payal Mittal
Updated on 26-Oct-2023 20K+ Views

Server−side rendering has been around for a while now. It was first introduced in the early 2000s and has been used by many websites since then. The idea behind this technique is to pre−render HTML pages on a server and send them back to the client's browser as they request them. With server-side rendering (SSR), the page is rendered on the server. This ensures that the page is available to users even before it loads on their browser. We’ll get to know more about SSR in this article − How Server-side Rendering (SSR) Works? It is the process of rendering ...

Read More

Tensorflow v/s Tensorflow.js v/s Brain.js

Jay Singh
Jay Singh
Updated on 31-Jul-2023 1K+ Views

Machine learning, which enables programmers to create intelligent systems that can pick up new information and adapt to it, is a technique that is increasingly used in modern software development. It could be difficult to decide which machine learning framework or library to use with so many options available. Three well-known machine learning frameworks—TensorFlow, TensorFlow.js, and Brain.js—will be compared and contrasted in this article. We'll go through the main traits, benefits, applications, and restrictions of each framework. At the conclusion of this essay, you will have a better understanding of which framework is ideal for your particular use case and ...

Read More

How to remove controls of a text canvas using Fabric.js?

Mohit Panchasara
Mohit Panchasara
Updated on 26-Jul-2023 703 Views

Fabric.js is a powerful tool written in JavaScript that makes it easier to build applications with interactive and dynamic graphics using HTML5 canvas. It offers many useful features, including the ability to add controls such as resizing and rotation handles to objects on the canvas. Sometimes, though, you might want to take away these controls from certain objects, like text, to limit what users can do. In this article, we'll show you how to remove controls from a text canvas using Fabric.js, using a simple example that you can follow along with. How to Remove Controls of a Text? To ...

Read More

Functional Programming with JavaScript Libraries: Ramda, Lodash, and Immutable.js

Mukul Latiyan
Mukul Latiyan
Updated on 25-Jul-2023 338 Views

Functional programming is a popular paradigm in JavaScript development, emphasising immutability, pure functions, and higher-order functions. It promotes writing clean, concise, and maintainable code. To facilitate advanced functional programming techniques, several JavaScript libraries have emerged, providing powerful tools and utilities. In this article, we will explore three such libraries: Ramda, Lodash, and Immutable.js. We will dive into code examples, explain their features, and showcase the benefits they bring to functional programming in JavaScript. Ramda: Functional Programming made Easy Ramda is a powerful library that promotes functional programming in JavaScript. It focuses on immutability and provides a wide range of functions ...

Read More

Top 10 Javascript Libraries for Machine Learning and Data Science

Priya Mishra
Priya Mishra
Updated on 11-Jul-2023 562 Views

Javascript has grown in popularity in recent years due to its large number of libraries used for both front-end and back-end development, however, Javascript has also evolved to meet the needs of machine learning and data scientists. Javascript libraries provide us with a comprehensive range of techniques and tools that simplify complex machine-learning tasks such as data analysis, pattern recognition, and predictive modeling. In this article, we will look at the top ten Javascript libraries for machine learning and data science. Top 10 Javascript Libraries for Machine Learning and Data Science Below are the top 10 Javascript libraries for machine ...

Read More

Using The Audio in Snack

Saba Hilal
Saba Hilal
Updated on 02-May-2023 418 Views

Audio is a common component of mobile apps. Audio can be used in apps in many ways. Audio can be selected from the mobile, it can be used from any online link, or can be included in the project itself as local audio. Expo-av can be used in all these cases for integrating sound into mobile apps. In this article, the React native and javascript code is shown with three different examples where in the first example, an audio file is browsed from the device. In the second example, the audio is taken from an online link and mixed with ...

Read More

Using Cards in Snack

Saba Hilal
Saba Hilal
Updated on 02-May-2023 407 Views

Sometimes, the task is to show a small bounded area with some text, picture, or colors and to retrieve more information from it later or to perform some actions on selecting that item. For this Card from react-native-paper can be used. More than one Card can also be used on a Screen, integrating it as a list item and it can be made clickable. In this article, the React native and javascript code is shown with two different examples where first a single card with an Image is used in an app, and in the second example multiple cards are ...

Read More

Using Tabs in Snack

Saba Hilal
Saba Hilal
Updated on 02-May-2023 335 Views

Tabs are created to implement multipage views in apps. Tabs are often placed on the top or at the bottom of the screen. Some libraries permit making tabs in mobile apps. Tabs can also be made using simple components like buttons. In this article, the React native and javascript code is shown with two different examples where in the first example, the buttons are used to make tabs. In the other example, the createMaterialTopTabNavigator from '@react-navigation/material-top-tabs' is used to make tabs and then render these on the screen of the device. Algorithm 1 Step 1 − Import Text, View, StyleSheet, ...

Read More
Showing 1–10 of 172 articles
« Prev 1 2 3 4 5 18 Next »
Advertisements