Skip to content

Commit

Permalink
Error on std.empty()
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeongho Nam committed Sep 7, 2018
1 parent 43a547b commit 30dc3ba
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"email": "[email protected]",
"url": "http://samchon.org"
},
"version": "2.0.5-dev.20180903",
"version": "2.0.5-dev.20180908",
"main": "./index.js",
"typings": "./index.d.ts",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/iterator/global.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export function empty<T>(source: Array<T>): boolean;
export function empty(source: any): boolean
{
if (source instanceof Array)
return source.length !== 0;
return source.length === 0;
else
return source.empty();
}
Expand Down

0 comments on commit 30dc3ba

Please sign in to comment.