Skip to content

Commit d99a160

Browse files
authored
Merge pull request gajus#140 from DiscoStarslayer/master
Added typeof check to Symbol in isIterable to avoid throwing a ReferenceError in iOS 8.0, mobile Safari 600.1.4
2 parents e1b4a3d + 8eeb0df commit d99a160

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)