Skip to content

Commit

Permalink
docs: update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
rob893 committed Feb 16, 2022
1 parent 5c814f6 commit 097dee2
Show file tree
Hide file tree
Showing 20 changed files with 2,294 additions and 2,276 deletions.
23 changes: 20 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,23 @@ This is a library that is a direct translation of [System.Linq](https://docs.mic
npm i typescript-extended-linq
```

To bind the Linq functions to native types (arrays, maps, sets, and strings), do the following at the start of your program:

```typescript
import { bindLinqToNativeTypes } from 'typescript-extended-linq';

bindLinqToNativeTypes();
```

You will then be able to see Linq methods on native types:

```typescript
[1, 2, 3]
.where(x => x > 1)
.take(1)
.toArray();
```

## Why use this library?

### Additional Functionality
Expand Down Expand Up @@ -157,7 +174,7 @@ Computes the average of a sequence of numeric values.

Split the elements of a sequence into chunks of size at most chunkSize.

### [concat](https://rob893.github.io/typescript-extended-linq/interfaces/IEnumerable.html#concat)
### [concatenate](https://rob893.github.io/typescript-extended-linq/interfaces/IEnumerable.html#concatenate)

Concatenates two sequences.

Expand Down Expand Up @@ -241,7 +258,7 @@ Produces the set intersection of two sequences.

Produces the set intersection of two sequences according to a specified key selector function.

### [join](https://rob893.github.io/typescript-extended-linq/interfaces/IEnumerable.html#join)
### [innerJoin](https://rob893.github.io/typescript-extended-linq/interfaces/IEnumerable.html#innerJoin)

Performs an inner join by correlating the elements of two sequences based on matching keys.

Expand Down Expand Up @@ -301,7 +318,7 @@ Adds a value to the beginning of the sequence.

Computes the quantile of a sequence.

### [reverse](https://rob893.github.io/typescript-extended-linq/interfaces/IEnumerable.html#reverse)
### [reverseImmutable](https://rob893.github.io/typescript-extended-linq/interfaces/IEnumerable.html#reverseImmutable)

Inverts the order of the elements in a sequence.

Expand Down
312 changes: 156 additions & 156 deletions docs/classes/ArrayEnumerable.html

Large diffs are not rendered by default.

312 changes: 156 additions & 156 deletions docs/classes/BasicEnumerable.html

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions docs/classes/Enumerable.html

Large diffs are not rendered by default.

314 changes: 157 additions & 157 deletions docs/classes/Grouping.html

Large diffs are not rendered by default.

312 changes: 156 additions & 156 deletions docs/classes/LinkedList.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/classes/LinkedListNode.html

Large diffs are not rendered by default.

312 changes: 156 additions & 156 deletions docs/classes/List.html

Large diffs are not rendered by default.

320 changes: 160 additions & 160 deletions docs/classes/OrderedEnumerable.html

Large diffs are not rendered by default.

312 changes: 156 additions & 156 deletions docs/classes/PriorityQueue.html

Large diffs are not rendered by default.

312 changes: 156 additions & 156 deletions docs/classes/Queue.html

Large diffs are not rendered by default.

312 changes: 156 additions & 156 deletions docs/classes/Stack.html

Large diffs are not rendered by default.

312 changes: 156 additions & 156 deletions docs/interfaces/ICollection.html

Large diffs are not rendered by default.

312 changes: 156 additions & 156 deletions docs/interfaces/IEnumerable.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/interfaces/IEnumerableFactory.html

Large diffs are not rendered by default.

314 changes: 157 additions & 157 deletions docs/interfaces/IGrouping.html

Large diffs are not rendered by default.

312 changes: 156 additions & 156 deletions docs/interfaces/IList.html

Large diffs are not rendered by default.

320 changes: 160 additions & 160 deletions docs/interfaces/IOrderedEnumerable.html

Large diffs are not rendered by default.

142 changes: 71 additions & 71 deletions docs/modules.html

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export * from './functions/asEnumerable';
export * from './functions/atLeast';
export * from './functions/atMost';
export * from './functions/average';
export * from './functions/bindLinqToNativeType';
export * from './functions/chunk';
export * from './functions/concatenate';
export * from './functions/contains';
Expand Down

0 comments on commit 097dee2

Please sign in to comment.