4 ms·
I wish I had known about this earlier. In a recent project, I had to come up with a pretty ugly hack to make my script both Node.js and browser compatible: http
by olalonde 15y ago
I wish I had known about this earlier. In a recent project, I had to come up with a pretty ugly hack to make my script both Node.js and browser compatible: https://github.com/olalonde/kmeans.js/blob/master/lib/kmeans.js#L154 https://github.com/olalonde/kmeans.js/blob/master/lib/kmeans...