Skip to content

Commit a9f8376

Browse files
committed
refactor: use node 14 supported syntax
1 parent 5604986 commit a9f8376

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/unique.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ export function exec<Method extends (...parameters) => RecordKey>(
100100
compare = defaultCompare,
101101
} = options;
102102
let { exclude = GLOBAL_UNIQUE_EXCLUDE } = options;
103-
options.currentIterations ||= 0;
103+
options.currentIterations = options.currentIterations ?? 0;
104104

105105
// Support single exclude argument as string
106106
if (!Array.isArray(exclude)) {

0 commit comments

Comments
 (0)