Skip to content

Commit

Permalink
fix: isDef remark
Browse files Browse the repository at this point in the history
  • Loading branch information
fupengl committed Jan 13, 2021
1 parent 96fab81 commit f66a397
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/function/get.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ function get<T>(
let current: any = entity;

for (let i = 0; i < paths.length; i += 1) {
if (isDef(current)) {
if (!isDef(current)) {
return undefined;
}

Expand Down
2 changes: 1 addition & 1 deletion src/is/is-Def.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* 判断值不是 undefined null
* 是否是定义过的数据 值不是 undefined null
* @param v
*/
function isDef(v) {
Expand Down

0 comments on commit f66a397

Please sign in to comment.