« first day (1114 days earlier)      last day (2988 days later) » 

7:58 AM
*I cant rather
 
1 message moved from Regular Chat
 
 
6 hours later…
1:33 PM
Hey there, I found this `filter()` function.
`Array.prototype.diff = function(a) {
return this.filter(function(i) {
return a.indexOf(i) < 0;
});
};`
I call it with `json.nodes.diff(nodes);`. My question is `a = json.nodes` and `i = nodes` or did I get that wrong?
 
 
2 hours later…
3:09 PM
Summon the @MadaraUchiha
 
1 message moved from SO Close Vote Reviewers
 
Sam
Hey @Cer
 
@Cerbrus hello
 
2 messages moved from SO Close Vote Reviewers
 
 
2 hours later…
1 message moved from C#
 
@Yatin uh, hi. Can we help you?
 
JAL
@Yatin Hi, how does this contribute to the current discussion?
 
3 messages moved from SO Close Vote Reviewers
 
6:41 PM
Hi! I build a reactjs application and i want to import socket.io client side only. My application is universal rendering. The Socket is connected to an api in a different port. How can i export a module to only use it from the client side? There's my module to handle Socket.io

import io from 'socket.io-client';
import { API_URL } from '../../config';
const socket = io(API_URL);

// Connexion à Socket.IO sur l'api
if (typeof window !== undefined) {
socket.on('message', (msg) => {
console.log(typeof window);
 

« first day (1114 days earlier)      last day (2988 days later) »