Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
function sequenceEqualDemo(shippedOrders, domesticOrders) {
const sameOrderAreSame = shippedOrders.every(
(order, i) => === shippedOrders[i].id
WriteLine(`Same Orders share the same sequence ${sameOrderAreSame}`);
const areAllDomesticOrdersShipped = shippedOrders.every(
(order, i) => === 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