Created
April 28, 2018 21:23
-
-
Save dance2die/80b52df7f322e4281969c08494a8c26c to your computer and use it in GitHub Desktop.
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 sequenceEqualDemo(shippedOrders, domesticOrders) { | |
const sameOrderAreSame = shippedOrders.every( | |
(order, i) => order.id === shippedOrders[i].id | |
); | |
WriteLine(`Same Orders share the same sequence ${sameOrderAreSame}`); | |
const areAllDomesticOrdersShipped = shippedOrders.every( | |
(order, i) => order.id === domesticOrders[i].id | |
); | |
WriteLine(`Are All Domestic Order Shipped? ${areAllDomesticOrdersShipped}`); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment