Skip to content

Commit 324d3a7

Browse files
committed
perf: simplify return expression
1 parent 64a9825 commit 324d3a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ if ($.fn) {
4141
}
4242
});
4343

44-
return typeof result === 'undefined' ? this : result;
44+
return result !== undefined ? result : this;
4545
};
4646

4747
$.fn.cropper.Constructor = Cropper;

0 commit comments

Comments
 (0)