Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

requiere and get a property simplified with Node

// This statement
const socket = require('../../socket).socket;
// Is the same as this
const { socket } = require('../../socket');
Source by platzi.com #
 
PREVIOUS NEXT
Tagged: #requiere #property #simplified #Node
ADD COMMENT
Topic
Name
1+2 =