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}`);
You can’t perform that action at this time.