Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.