Merge pull request #2677 from szarouski/master

Lodash _.create method
This commit is contained in:
Masahiro Wakame
2014-08-20 13:22:26 +09:00
+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;
}