mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Added _(...).forInRight definitions
This commit is contained in:
@@ -685,6 +685,10 @@ result = <any>_.forInRight(new Dog('Dagny'), function(value, key) {
|
||||
console.log(key);
|
||||
});
|
||||
|
||||
result = <_.LoDashObjectWrapper<any>>_(new Dog('Dagny')).forInRight(function(value, key) {
|
||||
console.log(key);
|
||||
});
|
||||
|
||||
result = <any>_.forOwn({ '0': 'zero', '1': 'one', 'length': 2 }, function(num, key) {
|
||||
console.log(key);
|
||||
});
|
||||
|
||||
Vendored
+9
@@ -3271,6 +3271,15 @@ declare module _ {
|
||||
thisArg?: any): Dictionary<T>;
|
||||
}
|
||||
|
||||
interface LoDashObjectWrapper {
|
||||
/**
|
||||
* @see _.forInRight
|
||||
**/
|
||||
forInRight<T extends {}>(
|
||||
callback?: ObjectIterator<T, void>,
|
||||
thisArg?: any): Dictionary<T>;
|
||||
}
|
||||
|
||||
//_.forOwn
|
||||
interface LoDashStatic {
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user