This file contains 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
{ | |
"name": "Keychron K3 Pro", | |
"vendorId": "0x3434", | |
"productId": "0x0233", | |
"lighting": { | |
"extends": "none", | |
"keycodes": "qmk" | |
}, | |
"customKeycodes": [ | |
{"name": "Left Option", "title": "Left Option", "shortName": "LOpt"}, |
This file contains 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
<!DOCTYPE HTML> | |
<html> | |
<head> | |
<style> | |
body { | |
margin: 0px; | |
padding: 0px; | |
} | |
</style> | |
</head> |
This file contains 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
function sumItems(array) { | |
// console.log(typeof 1) | |
// let isAllNumbers = array.every(x => (typeof x === 'number')); | |
// console.log(isAllNumbers); | |
let sum = 0; | |
array.forEach(function(x){ | |
if (typeof x === 'number') { | |
sum += x; | |
} else { | |
sum += sumItems(x); |