Skip to content

Commit a3af9c9

Browse files
Update source/intersperse.js
Co-authored-by: Richie Bendall <richiebendall@gmail.com>
1 parent 80b1973 commit a3af9c9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

source/intersperse.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export function intersperse(
1010

1111
// Short-circuit if no separators needed or separator is falsy (and not a function)
1212
// 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))) {
13+
if (count <= 1 || separator === null || separator === false) {
1414
return items;
1515
}
1616

0 commit comments

Comments
 (0)