0

I've been trying to find out what this notation is called so I can better google it. It's from the gmail api node example but wont run for me.

const {client_secret, client_id, redirect_uris} = credentials.installed;

I think this is the correct stackexchange site for this, but if I'm wrong, happy to relocate it to a more appropriate one.

Cob50nm
  • 811
  • 2
  • 7
  • 25
  • 1
    Object destructuring- https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Destructuring_assignment#Object_destructuring – Andrew Lohr Aug 16 '18 at 13:41

1 Answers1

0

It is Destructuring Assignment

obba
  • 77
  • 3