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) I had first implemented the requirement with both classes in the same file. however, when I split them into dedifferent modules, | |
I had some issue running it on browser since both `commonJS` and `amd` could import/define to bundle the module. | |
So, I have mae some google search and I came across `systemJs` module loader, that fixed my issue in browser. | |
2) About the following requirement `Also make sure that the executions of updateShipment with the same id never run concurrently`. | |
I wasn't to share if the requirement was to pause the execution of the function and wait until the promise is returned ( I implemented that with async await). | |
Or it was a request to check the `id value` of the coming update (which I dont implement). | |
Should you have any technical questions about my submittion, please let me know. |
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
/*===================================== OVERVIEW ================================ | |
* This Function will recieve to arrays as parameters | |
* and return a boolean. | |
* | |
* ==================================== PARAMS ================================== | |
* arraySet --> 1st parameter that contains an array of elemnts | |
* arraySubset --> 2nd parameter that contains the array that we are going | |
* to check if it is inside of the array from param1 or not. | |
* | |
* |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |