🌐 AI搜索 & 代理 主页
Skip to content

Commit 9ba80b8

Browse files
committed
feat: update falsey values to include BigInt zeros and negative zero
1 parent b49b155 commit 9ba80b8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lodash.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6961,7 +6961,7 @@
69616961

69626962
/**
69636963
* Creates an array with all falsey values removed. The values `false`, `null`,
6964-
* `0`, `-0', '0n`, `-0n`, `""`, `undefined`, and `NaN` are falsey.
6964+
* `0`, `-0', '0n`, `""`, `undefined`, and `NaN` are falsey.
69656965
*
69666966
* @static
69676967
* @memberOf _

test/test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@
164164
var falsey = [, null, undefined, false, 0, NaN, ''];
165165

166166
/** Used to provide extended falsey values including negative zero and BigInt zeros. */
167-
var falseyWithBigInt = [, null, undefined, false, 0, -0, 0n, -0n, NaN, ""];
167+
var falseyWithBigInt = falsey.concat(-0, BigInt(0));
168168

169169
/** Used to specify the emoji style glyph variant of characters. */
170170
var emojiVar = '\ufe0f';

0 commit comments

Comments
 (0)