Deep clone an object in JavaScript

// no functions, dates or undefined survive this
const clone = JSON.parse(JSON.stringify(source));