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
# Plaforms | |
Shopware - https://github.com/shopware | |
Saleor - https://github.com/mirumee | |
Spree - https://github.com/spree | |
GetCandy - https://github.com/getcandy | |
Reaction Commerce - https://github.com/reactioncommerce | |
Vendure - https://github.com/vendure-ecommerce | |
# Storefront for eCommerce | |
Vue Storefront - PWA for eCommerce - https://www.vuestorefront.io |
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
// #1 Solution | |
var arr = ['a','b','c','d','d','e','a','b','c','f','g','h','h','h','e','a']; | |
var map = arr.reduce(function(prev, cur) { | |
prev[cur] = (prev[cur] || 0) + 1; | |
return prev; | |
}, {}); | |
// map is an associative array mapping the elements to their frequency: | |
document.write(JSON.stringify(map)); | |
// prints {"a": 3, "b": 2, "c": 2, "d": 2, "e": 2, "f": 1, "g": 1, "h": 3} |
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
const test = {a: 1, b: 2, c: 3}; | |
// #1 ES6 | |
for (const [key, value] of Object.entries(test)) { | |
console.log(key, value); | |
} | |
// #2 | |
for (var k in test){ | |
if (test.hasOwnProperty(k)) { |
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
Popular Sites to Job Hunt | |
AngelList - https://angel.co | |
GitHub: http://jobs.github.com | |
Mashable: http://jobs.mashable.com/jobs | |
Indeed: http://indeed.com | |
StackOverflow: http://stackoverflow.com/jobs | |
LinkedIn: http://linkedIn.com | |
Glassdoor: http://glassdoor.com | |
Dice: http://dice.com | |
Monster: http://monster.com |
OlderNewer