We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
今天看到一个地方有误解,自己试了下,感觉挺不错。
你觉得下面的这个console的saga会输出什么?
console
saga
function run({name, age}, saga, ...options){ console.log('name is', name, 'saga is', saga) } let boundRun = run.bind(null, {name: 'xiaohesong', age: 18}) function *rootSaga() { yield 'i am a generator function' } boundRun(rootSaga)
The text was updated successfully, but these errors were encountered:
来实现个bind函数。
bind = (fn, _this, ...bindArgs) => (...args) => fn.apply(_this, [...bindArgs, ...args])
Sorry, something went wrong.
No branches or pull requests
今天看到一个地方有误解,自己试了下,感觉挺不错。
你觉得下面的这个
console
的saga
会输出什么?The text was updated successfully, but these errors were encountered: