Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
array objects to a single object
//JavaScript-C24.2.0 (SpiderMonkey) var arr = [{ key:"11", value:"1100" }, { key:"22", value:"2200" }]; var result = arr.reduce(function(obj,item){ obj[item.key] = item.value; return obj; }, {});
run
|
edit
|
history
|
help
0
zeroMatrix
GCD
JS exam part 2 - BPM
G
An awkward iteration
Change format Numbers
JavaScript - CheckDate()
Conditionals
prime consecutive numbers
class Stack