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
| # 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 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
| // #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 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 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 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
| 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