Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
// this file contains some hot JS modules systems stuff
import symbol from 'symbol-observable'
export default symbol.default ? symbol.default : symbol
function implementObservableInterface (target) {
Object.defineProperty(target, $$observable, {
enumerable: false,
value: function () {
return ({
subscribe: target.subscribe,
[$$observable] () {
return this
}
})
}
})
return target
}