[UDEMY] Build a Javascript deeply nested object cloning utility
#1
Wink 
Build a Javascript deeply nested object cloning utility

Learn plain Javascript concepts by building a utility that clones deeply nested Javascript objects

What Will I Learn?

Quote:
  • By the end of this course you will have built a utility that clones deeply nested Javascript objects and arrays.
  • In the process, you will learn about several Javascript concepts that you will find useful when working with objects and arrays.
  • You will also learn how to plan and structure your code.
  • You will ensure you are writing safe code by doing the necessary type checking using helper functions that you will create.
  • You will also utilize recursion to clone deeply nested objects.


Description
In this course you will build a library that will help you clone deeply nested Javascript objects and arrays. In the process, you will learn about several Javascript concepts that you will find useful when working with objects and arrays.

Copying of Javascript objects is done by reference. That means, your copied object shares the same memory address as your original object.

So, if you decide to change the value of a property on the copied object, you will end up modifying the value of the same property on the original object. 

This can be dangerous in many cases, where you unintentionally change the state of an object from somewhere else, which may result in causing unexpected behaviors in your application.

In the process of building this library you will learn about:
  •  Javascript objects and properties,
  •  why copying objects by reference can be dangerous,
  •  what is meant by cloning an object,
  •  creating helper functions that will do type checking on data,
  •  creating a function that will implement cloning for three different cases (data types) where the data is not an object or is null, where the data is an array holding elements of different data types and where the data is an object (and deeply nested object)

LINK
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)
[-]
Welcome
You have to register before you can post on our site.

Username/Email:


Password:





[-]
Recent Posts
QOwnNotes
26.6.2 Fixed cust...Kool — 12:18
Mozilla Firefox Browser 151.0.3
Mozilla Firefox Br...harlan4096 — 12:05
Intel lists Xe3p GPU architecture for “N...
Xe3P also listed f...harlan4096 — 06:18
NVIDIA announced RTX Spark chip for Wind...
NVIDIA confirms RT...harlan4096 — 06:17
AMD News - COMPUTEX 2026
AMD details Fidelity...harlan4096 — 06:16

[-]
Birthdays
Today's Birthdays
avatar (51)nteriageda
Upcoming Birthdays
avatar (42)tapedDow
avatar (48)BrantgoG
avatar (50)eapedDow
avatar (47)Carlosskake
avatar (49)rapedDow
avatar (44)Johnsonsyday
avatar (49)Groktus
avatar (41)efodo
avatar (39)Tedscolo
avatar (46)brakasig
avatar (51)smudloquask
avatar (46)benchJem
avatar (45)JamesReshy
avatar (47)Francisemefe
avatar (40)leoniDup
avatar (39)Patrizaancem
avatar (39)biobdam
avatar (42)zacforat
avatar (47)NemrokReks
avatar (50)Jasoncedia
avatar (38)Barrackleve
avatar (40)Julioagopy
avatar (50)aolaupitt2558
avatar (48)vadimTob
avatar (38)leannauu4
avatar (40)storoBox
avatar (48)kinotHeemn
avatar (39)Ceballos1976
avatar (40)efynu
avatar (32)horancos

[-]
Online Staff
There are no staff members currently online.

>