Skip to content

Instantly share code, notes, and snippets.



Last active Apr 28, 2018
What would you like to do?
function containsDemo(shippedOrders, domesticOrders) {
const firstDomesticOrder = domesticOrders[0];
const equalityComparer = order => ===;
const containsDomesticOrder = shippedOrders.some(equalityComparer);
WriteLine(`Is the first domestic order shipped? ${containsDomesticOrder}`);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment