add _.create to LoDashStatic

Something is better then nothing, adding _.create method
This commit is contained in:
Sergey Zarouski
2014-08-17 22:08:46 -04:00
parent 9c07b07820
commit 8c5eb7a46f
+10
View File
@@ -6210,6 +6210,16 @@ declare module _ {
noop(): void;
}
//_.create
interface LoDashStatic {
/**
* Creates an object that inherits from the given prototype object. If a properties object is provided its own enumerable properties are assigned to the created object.
* @param prototype The object to inherit from.
* @param properties The properties to assign to the object.
*/
create<T>(prototype: Object, properties?: Object): Object;
}
interface ListIterator<T, TResult> {
(value: T, index: number, list: T[]): TResult;
}