-
Notifications
You must be signed in to change notification settings - Fork 0
Extend typings and tests #33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
42 commits
Select commit
Hold shift + click to select a range
11f6d3b
Remove domain-specific modules
przemyslawzalewski 231ecfe
Add typings and tests for array module
przemyslawzalewski 87115b6
Always regenerate markdown docs from json
przemyslawzalewski 2a3040c
Regenerate docs
przemyslawzalewski 605407b
Add typings and tests for async module
przemyslawzalewski 59d178d
Regenerate async module docs
przemyslawzalewski cc6d407
Regenerate code
przemyslawzalewski eeaea0b
Refactor base64url module
przemyslawzalewski df2fa92
Restructure base64URL module and cover it with tests
przemyslawzalewski fee2c3f
Regenerate code and documentation
przemyslawzalewski eb768de
Add typings and tests for math module
przemyslawzalewski 0346e2e
Regenerate math module docs
przemyslawzalewski a20ad09
Add typings and tests for the string module
przemyslawzalewski 763eab8
Regenerated string module docs
przemyslawzalewski 9af383f
Add typings and tests for web module
przemyslawzalewski 48db792
Regenerate web module docs
przemyslawzalewski afaa95a
Add regex escape typings and tests
przemyslawzalewski ffd0d3a
Delete complex and mostly not needed parsePathname function
przemyslawzalewski e9403f4
Add typings and tests for query module
przemyslawzalewski 3d7e6bc
Regenerate code and documentation
przemyslawzalewski 1352c32
Fix serialize true value encoding
przemyslawzalewski 4b3920e
Add typings and tests for file module
przemyslawzalewski 4af4bb7
Regenerate docs and code
przemyslawzalewski 50eb59d
Add base tests for diff function
przemyslawzalewski 8453d8e
Do not treat infinities as valid numbers
przemyslawzalewski f95809b
Add typings and tests for assert module
przemyslawzalewski 13bac75
Regenerate code and docs
przemyslawzalewski 3182ea0
Add typings and tests for function module
przemyslawzalewski 1f3740e
Regenerate docs
przemyslawzalewski 6c25017
Fix byt->but typo
przemyslawzalewski f1713e0
Add typings and tests for vector2 module
przemyslawzalewski b93cf29
Regenerate vector2 docs
przemyslawzalewski 2884561
Cover vector2 module
przemyslawzalewski 4c0aae4
Regenerate docs and code
przemyslawzalewski 97cd24c
Cover default values of vector2 module
przemyslawzalewski dc93535
Regenerate code
przemyslawzalewski 8715f00
Reference Array.reverse instead of Array.sort
przemyslawzalewski 285ebfe
Add empty arrays equality test
przemyslawzalewski 4e1aa8c
Remove leftov er test case
przemyslawzalewski 4cc504a
Add UTF-8 file name test case
przemyslawzalewski 92eb3b9
Remove non-meaningful postfixes
przemyslawzalewski cfa0beb
Regenerate docs
przemyslawzalewski File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1 @@ | ||
| export default (xs: any[]): boolean => (xs ? xs.length > 0 : false); | ||
| export default (xs?: any[]): boolean => (xs ? xs.length > 0 : false); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,5 @@ | ||
| export default (xs, ys) => | ||
| (!xs && ys) || | ||
| (!ys && xs) || | ||
| Boolean(!xs && ys) || | ||
| Boolean(!ys && xs) || | ||
| xs.length !== ys.length || | ||
| xs.some((x, index) => x !== ys[index]); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,3 @@ | ||
| # differs | ||
|
|
||
| Checks if two arrays are not equal. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,5 @@ | ||
| export default (xs, ys) => | ||
| (!xs && ys) || | ||
| (!ys && xs) || | ||
| export default (xs?: any[], ys?: any[]) => | ||
| Boolean(!xs && ys) || | ||
| Boolean(!ys && xs) || | ||
| xs.length !== ys.length || | ||
| xs.some((x, index) => x !== ys[index]); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,3 @@ | ||
| # duplicates | ||
|
|
||
| Lists all the duplicated values in the given array. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1,2 @@ | ||
| export default xs => | ||
| export default (xs: any[]) => | ||
| xs.filter((value, index, self) => self.indexOf(value) !== index); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,3 @@ | ||
| # empty | ||
|
|
||
| Empty array. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,3 @@ | ||
| import range from "./range.js"; | ||
|
|
||
| export default n => xs => range(n).map(index => xs[index]); | ||
| export default count => xs => range(count).map(index => xs[index]); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,3 @@ | ||
| # exact | ||
|
|
||
| Takes exactly the given count of elements. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,4 @@ | ||
| import range from "./range"; | ||
|
|
||
| export default n => xs => range(n).map(index => xs[index]); | ||
| export default (count: number) => (xs: any[]) => | ||
| range(count).map(index => xs[index]); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,3 @@ | ||
| # except | ||
|
|
||
| Filters out the given value. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1 @@ | ||
| export default y => xs => xs.filter(x => x !== y); | ||
| export default (y: any) => (xs: any[]) => xs.filter(x => x !== y); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.