flip
"Let go of the thoughts that don't make you strong." —Unknown
本文为 《lodash 源码阅读》 系列文章,后续内容会在 github 中发布,欢迎 star,gitbook 同步更新。
源码
原理
使用扩展运算符 ...
获取参数数组 args
,再通过 Array.prototype.reverse
将参数数组翻转,传给 func
作为参数执行。
相关链接
Last updated
Was this helpful?