function returnhundred(k = 0) { let random = function(max){return Math.floor(Math.random() * Math.floor(max))} let base = Math.pow('\n'.charCodeAt(), Math.pow(null, null) + '\n'.length); if (k == base) return k; return k > base ? returnhundred(k - random(base)) : returnhundred(k + random(base)); }
function returnhundred() {return Number('Ā'.charCodeAt(0).toString(16));- function returnhundred(k = 0) {
- let random = function(max){return Math.floor(Math.random() * Math.floor(max))}
- let base = Math.pow('\n'.charCodeAt(), Math.pow(null, null) + '\n'.length);
- if (k == base) return k;
- return k > base ? returnhundred(k - random(base)) : returnhundred(k + random(base));
- }
Should work ¯\_(ツ)_/¯
function getGemsOfColor(color, gems) { let temp_gems = []; gems.filter(gem => gem.colors.includes(color)).forEach(gem => temp_gems.push(gem.name)); return temp_gems; }
- function getGemsOfColor(color, gems) {
- let temp_gems = [];
- gems.filter(gem => gem.colors.includes(color)).forEach(gem => temp_gems.push(gem.name));
- return temp_gems;
- }