Skip to content

Instantly share code, notes, and snippets.

View lexTutor's full-sized avatar
🏠
Working from home

Chibuikem Akpaka lexTutor

🏠
Working from home
View GitHub Profile
@lexTutor
lexTutor / JS-LINQ.js
Created January 8, 2023 20:57 — forked from DanDiplo/JS-LINQ.js
JavaScript equivalents of some common C# LINQ methods. To help me remember!
// JS array equivalents to C# LINQ methods - by Dan B.
// First: This version using older JavaScript notation for universal browser support (scroll down for ES6 version):
// Here's a simple array of "person" objects
var people = [
{ name: "John", age: 20 },
{ name: "Mary", age: 35 },
{ name: "Arthur", age: 78 },
{ name: "Mike", age: 27 },