Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
💡 C# Result
==================== Intersect (intersection) DEMO - Find All Orders on Hold ====================
******************** US Orders on hold ********************
Order ID: 1, Quantity: 40, Order Date: 01 Jan 2018 01:01 AM pst
******************** International Orders on hold ********************
Order ID: 3, Quantity: 30, Order Date: 03 Mar 2018 03:03 AM pst
Order ID: 4, Quantity: 10, Order Date: 04 Apr 2018 04:04 AM pst
Order ID: 5, Quantity: 20, Order Date: 05 May 2018 05:05 AM pst
💡 JavaScript Result
==== Array.prototype.intersect (LINQ 'Intersect' Equivalent) DEMO - Find All Orders on Hold ======
******************** US Orders on hold ********************
Order ID: 1, Quantity: 40, Order Date: Thu Feb 01 2018 01:01:01 GMT-0500 (Eastern Standard Time)
******************** International Orders on hold ********************
Order ID: 3, Quantity: 30, Order Date: Tue Apr 03 2018 03:03:03 GMT-0400 (Eastern Daylight Time)
Order ID: 4, Quantity: 10, Order Date: Fri May 04 2018 04:04:04 GMT-0400 (Eastern Daylight Time)
Order ID: 5, Quantity: 20, Order Date: Tue Jun 05 2018 05:05:05 GMT-0400 (Eastern Daylight Time)
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.