---
title: "Robert Moran (@rmoran86) | Hashnode"
description: "Software Engineer with passion for Web. Read the latest articles by Robert Moran on Hashnode."
url: "https://hashnode.com/@rmoran86"
---

@rmoran86

# Robert Moran

@rmoran86 · Las Vegas · Joined February 2015

Software Engineer with passion for Web

### [Copying JavaScript object and arrays](https://rmoran86.hashnode.dev/copying-javascript-object-and-arrays?utm_source=hashnode&utm_medium=feed)

I recently learned this method: Copying a JavaScript Object const source = { a: 1, b: 2 }; const copy = Object.assign({}, source); Copying a JavaScript Array const arr = \[0,2,3,4,5\]; const arrCopy = arr.slice(0); These two functions come handy when y...

1 min read · [rmoran86.hashnode.dev](https://rmoran86.hashnode.dev/copying-javascript-object-and-arrays?utm_source=hashnode&utm_medium=feed)

[1](https://hashnode.com/posts/copying-javascript-object-and-arrays/5f05e3d931045715ed6deda2) [Jul 8, 2020](https://hashnode.com/posts/copying-javascript-object-and-arrays/5f05e3d931045715ed6deda2)
