[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


Messages In This Thread
[UDEMY] Build a Javascript deeply nested object cloning utility - by grr - 09 December 17, 02:47

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
Privazer 4.0.120.2
Privazer 4.0.120.2...harlan4096 — 07:30
Brave 1.88.138 (Chromium 146.0.7680.178)
Release v1.88.138 ...harlan4096 — 07:28
Opera 129.0.5823.44
Hello! New Oper...harlan4096 — 07:27
Microsoft Edge 146.0.3856.97
Version 146.0.3856...harlan4096 — 07:26
AnyDesk 8.0.2 for Linux
Version 8.0.2 for ...harlan4096 — 07:25

[-]
Birthdays
Today's Birthdays
No birthdays today.
Upcoming Birthdays
avatar (45)wapedDow
avatar (49)oapedDow
avatar (42)Sanchowogy
avatar (46)MeighGoask
avatar (47)creatralGuelm
avatar (38)procnipsut
avatar (44)accenwibly
avatar (41)ahyvily
avatar (38)urumahiz
avatar (44)techlignub
avatar (43)Stevenmam
avatar (50)onlinbah
avatar (50)fuspeukChark
avatar (44)werriewWaiNg
avatar (38)Freemanleo
avatar (43)cdoubapKit
avatar (38)lystraPonia
avatar (31)smith8395john
avatar (51)steakelask
avatar (45)Termoplenka
avatar (43)bycoPaist
avatar (49)pieloKat
avatar (43)ilyagNeexy
avatar (51)donitascene
avatar (51)burntLaw
avatar (41)MrDoorsskibheeds
avatar (51)Toligo
avatar (46)Rodneykak
avatar (49)tradeSmode
avatar (39)vemedProkbior
avatar (38)RobertUtelt
avatar (46)JamesZic
avatar (43)Sanfordbup
avatar (38)Der.Reisende
avatar (36)Kiran78

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

>