diff --git a/lodash/lodash-tests.ts b/lodash/lodash-tests.ts index fa3c3f246..38a296544 100644 --- a/lodash/lodash-tests.ts +++ b/lodash/lodash-tests.ts @@ -623,6 +623,8 @@ result = _.isFinite(true); result = _.isFinite(''); result = _.isFinite(Infinity); +result = _.isFunction(_); + var mergeNames = { 'stooges': [ { 'name': 'moe' }, diff --git a/lodash/lodash.d.ts b/lodash/lodash.d.ts index c05b43b36..fd771b1ce 100644 --- a/lodash/lodash.d.ts +++ b/lodash/lodash.d.ts @@ -2426,6 +2426,13 @@ declare module _ { **/ export function isFinite(value: any): boolean; + /** + * Checks if value is a function. + * @param value The value to check. + * @return True if the value is a function, else false. + **/ + export function isFunction(value: any): boolean; + /** * Recursively merges own enumerable properties of the source object(s), that don't resolve * to undefined into the destination object. Subsequent sources will overwrite property @@ -2653,13 +2660,6 @@ declare module _ { **/ export function isObject(object: any): boolean; - /** - * Returns true if object is a Function. - * @param object Check if this object is a Function. - * @return True if `object` is a Function, otherwise false. - **/ - export function isFunction(object: any): boolean; - /** * Returns true if object is a String. * @param object Check if this object is a String.