I'm looking for a way to get the same functionality of the Lodash _.forIn() Method but without using Lodash. I can use Underscore however.
This is what the method does https://www.geeksforgeeks.org/lodash-_-forin-method/?ref=gcse
I'm looking for a way to get the same functionality of the Lodash _.forIn() Method but without using Lodash. I can use Underscore however.
This is what the method does https://www.geeksforgeeks.org/lodash-_-forin-method/?ref=gcse
A basic recipe for
_.forInwas given in a comment by @VLAZ:All the iteratee shorthand niceness can be added by taking the
iterateethrough_.iterateefirst:To add it to the Underscore namespace, so you can use it in chaining and OOP notation, use
_.mixin: