Forked from http://github.com/component/to-function