Skip to content

Commit 7b1fa10

Browse files
committed
added unit tests
reduced package size fixed some issues improved select, selectmany, todictionary and zip generics
1 parent 299d4d4 commit 7b1fa10

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

79 files changed

+10021
-347
lines changed

.gitignore

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1-
node_modules
2-
bower_components
1+
/.vscode
2+
/node_modules
3+
/bower_components

.idea/Linq4JS.iml

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/codeStyles/Project.xml

Lines changed: 14 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/codeStyles/codeStyleConfig.xml

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/encodings.xml

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/inspectionProfiles/Project_Default.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/misc.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/modules.xml

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/vcs.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

Lines changed: 34 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -827,33 +827,41 @@ select x => {x.Name}
827827

828828
Supported methods (the methodname and aliases are not case-sensitive)
829829

830-
| Methodname | Alias | Examples |
831-
|-------------------|---------------------------------------------------------------------------------------------------------------------------|----------------------------------|
832-
| Clone | | clone |
833-
| Reverse | | reverse |
834-
| Where | | where x => x.Id > 3 |
835-
| Select | | select x => x.Id |
836-
| Get | | get 4 |
837-
| ForEach | for each | for each x => console.log(x) |
838-
| Count | | count x => x.Id |
839-
| All | | all x => x.Age > 4 |
840-
| Any | | any x => x.Age > 4 |
841-
| Take | | take 3 |
842-
| Skip | | skip 3 |
843-
| Min | | min x => x.Age |
844-
| Max | | max x => x.Age |
845-
| GroupBy | group by | group by x => x.Name |
846-
| Distinct | | distinct x => x.Id |
847-
| FindLastIndex | find last index<br>find index ... last<br>findindex ... last | find index x => x.Age == 3 last |
848-
| FindIndex | find index<br>find first index<br>findfirstindex<br>find index ... first<br>findindex ... first | find index x => x.Age == 3 first |
849-
| OrderByDescending | order by ... descending<br>orderby ... descending<br>orderby descending<br>order by descending<br>orderbydescending | order by x => x.Age descending |
830+
| Methodname | Alias | Examples |
831+
|-------------------|---------------------------------------------------------------------------------------------------------------------------------------|----------------------------------|
832+
| Clone | | clone |
833+
| Reverse | | reverse |
834+
| Contains | | contains 5 |
835+
| Join | | join 5 |
836+
| Sum | | sum |
837+
| Average | | average |
838+
| Where | | where x => x.Id > 3 |
839+
| Select | | select x => x.Id |
840+
| SelectMany | select many<br> select ... many | select many x => x.Pets |
841+
| Get | | get 4 |
842+
| ForEach | for each | for each x => console.log(x) |
843+
| Count | | count x => x.Id |
844+
| All | | all x => x.Age > 4 |
845+
| Any | | any x => x.Age > 4 |
846+
| Take | | take 3 |
847+
| TakeWhile | take while<br> take ... while | take while x => x.Age > 10 |
848+
| Skip | | skip 3 |
849+
| Min | | min x => x.Age |
850+
| Max | | max x => x.Age |
851+
| GroupBy | group by | group by x => x.Name |
852+
| Distinct | | distinct x => x.Id |
853+
| FindLastIndex | find last index<br>find index ... last<br>findindex ... last | find index x => x.Age == 3 last |
854+
| FindIndex | find index<br>find first index<br>findfirstindex<br>find index ... first<br>findindex ... first | find index x => x.Age == 3 first |
855+
| OrderByDescending | order by ... descending<br>orderby ... descending<br>orderby descending<br>order by descending<br>orderbydescending | order by x => x.Age descending |
850856
| OrderBy | order by ... ascending<br>orderby ... ascending<br>orderby ascending<br>order by ascending<br>orderbyascending<br>order by<br>orderby | order by x => x.Age ascending |
851-
| FirstOrDefault | first or default | first or default |
852-
| LastOrDefault | last or default | last or default |
853-
| First | | first |
854-
| Last | | last |
855-
| ThenByDescending | thenby ... descending<br>then by ... descending<br>thenbydescending<br>then by descending | then by x => x.Name descending |
856-
| ThenBy | thenby ... ascending<br>then by ... ascending<br>thenbyascending<br>then byascending<br>thenby<br>then by | then by x => x.Name ascending |
857+
| FirstOrDefault | first or default | first or default |
858+
| LastOrDefault | last or default | last or default |
859+
| SingleOrDefault | single or default | single or default |
860+
| First | | first |
861+
| Last | | last |
862+
| Single | | single |
863+
| ThenByDescending | thenby ... descending<br>then by ... descending<br>thenbydescending<br>then by descending | then by x => x.Name descending |
864+
| ThenBy | thenby ... ascending<br>then by ... ascending<br>thenbyascending<br>then byascending<br>thenby<br>then by | then by x => x.Name ascending |
857865

858866
## Author
859867

0 commit comments

Comments
 (0)