Skip to content

Instantly share code, notes, and snippets.

@dance2die dance2die/allDemo.js
Created Apr 28, 2018

Embed
What would you like to do?
function allDemo(orders) {
const areAllOrdersPlacedOn2018 = orders.every(
order => order.orderDate.getFullYear() === 2018
);
WriteLine(`Are All Orders Placed On 2018?: ${areAllOrdersPlacedOn2018}`);
}
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.