Skip to content
This repository has been archived by the owner on Feb 12, 2023. It is now read-only.

Buildstarted/arrayjs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 

Repository files navigation

array.js is a javascript implementation of linq. It has support for deferred execution for browsers that do not support Javascript 1.7.

#method chaining
    var source = [ 1, 2, 3, 3, 2, 2, 3, 1, 0, 5 ];
    var result = source
                       .where(function(x) { return x < 4; })
                       .skip(2)
                       .distinct();

#deferred execution
    var source = [ 1, 2, 3, 3, 2, 2, 3, 1, 0, 5 ];
    var result = source.where(function(x) { return x < 4; });
    
    //it's only executed on toArray() or whenever
    //the element is enumerated
    console.log(result.toArray());

About

A javascript implementation of Linq to Objects

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published