Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Andrew Bamidele rewdt

🏠
Working from home
View GitHub Profile
View index.js
const { createServer } = require('http');
createServer((req, res) => {
res.writeHead(200, {
Connection: 'Transfer-Encoding',
'Content-Type': 'text/html; charset=utf-8',
'Transfer-Encoding': 'chunked'
});
res.write(`
@rewdt
rewdt / array_dupplicate_counter.js
Created Apr 26, 2019 — forked from ralphcrisostomo/array_dupplicate_counter.js
Javascript: Count duplicates in an array
View array_dupplicate_counter.js
/**
Problem:
You have a javascript array that likely has some duplicate values and you would like a count of those values.
Solution:
Try this schnippet out.
*/