@ManavMisra/

PortlySelfassuredScriptinglanguages

Nodejs

No description

fork
loading
Files
  • index.js
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
const items = [
     {
       "item": {
        "name": "Digital SLR Camera",
         "price": "1495"
       },
       "quantity": 1
     }
   ]

function testSpread(someObj) {
  console.log(...someObj)
}

testSpread(items);
node v10.16.0