Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Add items on Set
var arr = [3, 7, 8, 75, 65, 32, 98, 32, 3]; var array = [100, 3, 200, 98, 65, 300]; var mySet = new Set(arr); console.log(mySet); // Adding items of array to mySet Set.prototype.addItems = function(array) { for(var item of array){ this.add(item) } } mySet.addItems(array); console.log(mySet)
run
|
edit
|
history
|
help
0
To compare; creating async methods in javascript
Union of two sorted arrays
example for node promises
demo.js
Find the missing number in array
A01 Implement Queue with Limited Size of Arrays
lodash
fast function to reverse unsigned integer
Count digits
Compare 2 arrays and fill 1 or 2