From 8c5eb7a46fdc787376cd9f6987a9c1d6d0c2086b Mon Sep 17 00:00:00 2001 From: Sergey Zarouski Date: Sun, 17 Aug 2014 22:08:46 -0400 Subject: [PATCH] add _.create to LoDashStatic Something is better then nothing, adding _.create method --- lodash/lodash.d.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lodash/lodash.d.ts b/lodash/lodash.d.ts index a4de09279..3e3fd43d7 100644 --- a/lodash/lodash.d.ts +++ b/lodash/lodash.d.ts @@ -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(prototype: Object, properties?: Object): Object; + } + interface ListIterator { (value: T, index: number, list: T[]): TResult; }