Skip to content

Commit

Permalink
Fixed filter "|length".
Browse files Browse the repository at this point in the history
  • Loading branch information
fenying committed Apr 16, 2018
1 parent efd4181 commit c1c0c94
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Changes Logs

## v0.1.0
## v0.1.1

Nothing yet.
- Fixed filter "|length".
2 changes: 1 addition & 1 deletion 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": "@litert/typeguard",
"version": "0.1.0",
"version": "0.1.1",
"description": "A type checking code \"JIT\" library.",
"main": "dist/index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion sources/lang.javascript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ implements Language {
case FILTER_ON.LENGTH:
ret.push(`${v} !== null`);
ret.push(`${v} !== undefined`);
ret.push(`typeof ${v} === "number"`);
ret.push(`typeof ${v}.length === "number"`);
v = `${v}.length`;
break;
case FILTER_ON.ARRAY_LENGTH:
Expand Down

0 comments on commit c1c0c94

Please sign in to comment.