A Practical Use Case for JavaScript’s Object.assign()

Assigning a Database recordset Object to a JavaScript Class Object

gravity well
Nov 6 · 5 min read
Photo by Louis Hansel on Unsplash

Use Case

There is a lot to Object.assign(). However, at its basic level, it assigns one Object’s property’s to another Object.

Object.assign(target, ...sources)

Keep the story going. Sign up for an extra free read.

You've completed your member preview for this month, but when you sign up for a free Medium account, you get one more story.
Already have an account? Sign in

gravity well

Written by

Long time Software Developer, Trainer, Consultant. Keeping up to date. I’ve noticed in over 28 years of programming, one’s current skills have a shelf life.

JavaScript in Plain English

Learn the web's most important programming language.

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade