Skip to content
This repository has been archived by the owner on Jan 11, 2019. It is now read-only.

Commit

Permalink
Remove babel-runtime and replace babel Symbol
Browse files Browse the repository at this point in the history
  • Loading branch information
Phil Plückthun committed Sep 29, 2016
1 parent 2d33a2f commit 51345bc
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
1 change: 0 additions & 1 deletion .babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
"/node_modules/"
],
"plugins": [
"transform-runtime",
"transform-react-constant-elements",
"transform-react-inline-elements",
"closure-elimination"
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"immutable"
],
"dependencies": {
"babel-runtime": "^6.11.6",
"es6-symbol": "^3.1.0",
"rxjs": "^5.0.0-beta.10"
},
"devDependencies": {
Expand Down
4 changes: 3 additions & 1 deletion src/util/isIterator.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import _Symbol from 'es6-symbol'

export default function isIterator(arg) {
return typeof arg[Symbol.iterator] === 'function'
return arg && typeof arg[_Symbol.iterator] === 'function'
}

5 changes: 3 additions & 2 deletions src/util/isObservable.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import _Symbol from 'es6-symbol'
import { Observable } from 'rxjs'

export default function isObservable(obj) {
return typeof obj === 'object' && (
typeof obj[Symbol.observable] === 'function' ||
return obj && (
typeof obj[_Symbol.observable] === 'function' ||
obj instanceof Observable
)
}
Expand Down

0 comments on commit 51345bc

Please sign in to comment.