Skip to content

Commit

Permalink
fixed select keep group value
Browse files Browse the repository at this point in the history
  • Loading branch information
morrisjdev committed Jul 24, 2019
1 parent 7b1fa10 commit a716487
Show file tree
Hide file tree
Showing 7 changed files with 783 additions and 16 deletions.
738 changes: 738 additions & 0 deletions .idea/workspace.xml

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions dev/Modules/Select.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@

let newArray: Y[] = [];

if (this._linq4js_ && this._linq4js_.GroupValue) {
newArray._linq4js_ = { GroupValue: this._linq4js_.GroupValue, Order: [] };
}

for (let obj of this) {
newArray.Add(selectorFunction(obj));
}
Expand Down
5 changes: 4 additions & 1 deletion dist/linq4js.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/linq4js.min.js

Large diffs are not rendered by default.

43 changes: 31 additions & 12 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "linq4js",
"version": "2.2.1",
"version": "2.2.2",
"description": "Linq methods for JavaScript/TypeScript to work with Arrays",
"main": "dist/linq4js.js",
"typings": "dist/linq4js.d.ts",
Expand Down
5 changes: 4 additions & 1 deletion test/all.js

Large diffs are not rendered by default.

0 comments on commit a716487

Please sign in to comment.