Created
April 28, 2018 21:23
-
-
Save dance2die/3c24269621d3314d4693c9ad3b642ce2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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