This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"area": "Ambarawa", | |
"coords": { | |
"dms": [ | |
"07º 18’ LS", | |
"110º 23’ BT" | |
], | |
"decimal": [ | |
"-7.300000", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Alternate each case of each of string given | |
alternateCase("abc") => "ABC" | |
alternateCase("ABC") => "abc" | |
alternateCase("Hello World") => "hELLO wORLD" | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const xdom = { | |
bindElement: function(element) { | |
const props = Object.keys(this); | |
props.forEach(prop => { | |
element[prop] = this[prop]; | |
}); | |
return element; | |
}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const colors = { | |
red: { | |
"50": "#FFEBEE", | |
"100": "#FFCDD2", | |
"200": "#EF9A9A", | |
"300": "#E57373", | |
"400": "#EF5350", | |
"500": "#F44336", | |
"600": "#E53935", | |
"700": "#D32F2F", |