Added _(...).forInRight definitions

This commit is contained in:
Brian Zengel
2013-11-10 19:17:14 -05:00
parent 951fd3692d
commit 7b56be3bc2
2 changed files with 13 additions and 0 deletions
+4
View File
@@ -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);
});
+9
View File
@@ -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 {
/**