Start sharing components as a team!Share components as a team!Join Bit to build your applications faster.Get Started Free

for-in-right

v4.17.11arrow_drop_down
v4.17.11
STATUS
Passing
DOWNLOADS
9
LICENSE
MIT
VISIBILITY
Public
PUBLISHED
7 months ago
SIZE
2 KB
subject
This method is like `_.forIn` except that it iterates over properties of `object` in the opposite order.
1 contributor
Use for-in-right in your project ?
Copied
npm i @bit/lodash.lodash.for-in-right
Set Bit as a scoped registryLearn more
npm config set '@bit:registry' https://node.bit.dev
Component Example
React
React
Vue
Angular
Add dependency... help_outline
Just
import
any of the 1 million components
and packages in Bit or NPM to the example.
import Button from '@bit/grommet.grommet.button';
import Lodash from 'lodash';
revert changes
reload
toggle layout
maximize
this.a = 1;
modifieddraft
chevron_left
chevron_right
forInRight (
object:Object,
iteratee:Function?
) : Object

This method is like _.forIn except that it iterates over properties of object in the opposite order.

Example
function Foo() {
  this.a = 1;
  this.b = 2;
}

Foo.prototype.c = 3;

_.forInRight(new Foo, function(value, key) {
  console.log(key);
});
// => Logs 'c', 'b', then 'a' assuming `_.forIn` logs 'a', 'b', then 'c'.
Arguments
object: Object

The object to iterate over.

iteratee: Function?

The function invoked per iteration.

Returns
Object

Returns `object`.