SOURCE

let person = {
  name: "vince",
  age: 24,
  height: undefined,
  friends:["alisa", "bob", undefined]
}
let str = JSON.stringify(person, ["name", "friends"])
console.log(str)
console 命令行工具 X clear

                    
>
console