sun and cloud
🌈 欢迎访问我的博客,又是美好的一天!

函数式编程:偏函数 (Partial application)

一个与 Currying 很类似的东西,其实Currying是一种特殊的偏函数

partial 函数式编程 函数式 范式
阅读更多

Javascript 基础: 箭头函数与arguments

es6中箭头函数有无作用域,this指向,能否使用arguments,为什么?

arrow args arguments rest this
阅读更多

函数式编程:柯里化(Currying)

在一个函数中首先填充几个参数(然后再返回一个新函数)的技术称为柯里化(Currying)

函数式编程 函数式 范式 curry currying js +1
阅读更多

ssh_exchange_identification: Connection closed by remote host

无法调用ssh相关命令,原因出在了VPN代理上面

ssh sshd proxy 代理 vpn
阅读更多

[].slice.call(arguments)原理解析

slice将 arguments 转化为数组的原理

slice arguments args arrayLike
阅读更多

redux源码分析:applyMiddleware

redux 添加中间件会调用 applyMiddleware

redux applyMiddleware middleware createStore store getState +2
阅读更多

redux源码分析:subscribe/unsubscribe

redux 源码之 subscribe方法

redux subscribe unsubscribe 观察者
阅读更多

redux源码分析:getState

getState 方法,获取当前最新状态

getState redux state
阅读更多

redux源码分析:稀疏数组 VS 密集数组

讨论来源:为什么 dispatch 方法中的 listeners 用 for,而不是 forEach 执行

redux 源码 for forEach 密集数组 稀疏数组 +4
阅读更多

redux源码分析:dispatch

redux 在调用 dispatch 具体是做了什么

redux dispatch 源码
阅读更多