Skip to content

Commit 8eeb0df

Browse files
author
Darren Thompson
committed
Added typeof check to Symbol in isIterable to avoid throwing a
ReferenceError in iOS 8.0, mobile Safari 600.1.4
1 parent e1b4a3d commit 8eeb0df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/isIterable.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import _ from 'lodash';
22

3-
const ITERATOR_SYMBOL = _.isFunction(Symbol) && Symbol.iterator;
3+
const ITERATOR_SYMBOL = typeof Symbol !== 'undefined' && _.isFunction(Symbol) && Symbol.iterator;
44
const OLD_ITERATOR_SYMBOL = '@@iterator';
55

66
/**

0 commit comments

Comments
 (0)