We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 80b1973 commit a3af9c9Copy full SHA for a3af9c9
1 file changed
source/intersperse.js
@@ -10,7 +10,7 @@ export function intersperse(
10
11
// Short-circuit if no separators needed or separator is falsy (and not a function)
12
// Note: undefined check won't trigger due to default parameter, but null and false will
13
- if (count <= 1 || (typeof separator !== 'function' && (separator === null || separator === false))) {
+ if (count <= 1 || separator === null || separator === false) {
14
return items;
15
}
16
0 commit comments