4 ms·
I'm curious why the `thisArg` parameters were removed? I dug through some of the PRs and commmits but was unable to find any specific conversation. It seems od
by vkjv 11y ago
I'm curious why the `thisArg` parameters were removed? I dug through some of the PRs and commmits but was unable to find any specific conversation.
It seems odd since the `Array.prototype` methods include it.
https://github.com/lodash/lodash/commit/454aca7003e14994e7b9f6ebc5ab436142690eda https://github.com/lodash/lodash/commit/454aca7003e14994e7b9...
- reaktivo 11y agoWas wondering the same, and I can't think of a better reason than the popular adoption of ES6 arrow functions, since the thisArg was mostly used to pass in 'this' as a value.
- jdd 11y agoIt was removed because it added extra complexity for method implementations and was used very little. Folks now can use `_.bind`, or `Function#bind`, or arrow functions.