Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ArrayV2

New type JavaScript array.

Simple linq functions for javascript arrays!

-Where
-OrderBy
-OrderByDesc
-Select
-SelectMany
-GroupBy

Every functions has a Set version, the Set function will return the end of your data and set your array(for view engines vue, react, angular...)
Use as "WhereSet", "OrderBySet",....

{
var arr = [
{ Id: 1, expStr: "Lorem ipsum dolor sit amet, consectetur adipiscing elit", expBool: true },
{ Id: 2, expStr: "Mauris eget neque eu nulla molestie bibendum", expBool: true },
{ Id: 3, expStr: "Vivamus consequat egestas suscipit.", expBool: false },
{ Id: 4, expStr: "Donec varius eget massa dignissim elementum", expBool: true },
{ Id: 5, expStr: "In a ornare massa, non eleifend risus", expBool: false },
];
var arrV2 = arr.AsV2();
arrV2.Where(x => x.Id > 3); //[ { Id: 4, expStr: "Donec varius eget massa dignissim elementum", expBool: true }, { Id: 5, expStr: "In a ornare massa, non eleifend risus", expBool: false } ] }

About

New type JavaScript array.

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages