From a98537ef0527b216955e7cde2f681d305d84b80f Mon Sep 17 00:00:00 2001 From: Brian Zengel Date: Sun, 20 Oct 2013 12:57:24 -0400 Subject: [PATCH] added _.isArguments definition --- lodash/lodash-tests.ts | 5 +---- lodash/lodash.d.ts | 14 +++++++------- 2 files changed, 8 insertions(+), 11 deletions(-) diff --git a/lodash/lodash-tests.ts b/lodash/lodash-tests.ts index da47cbf46..ed886070d 100644 --- a/lodash/lodash-tests.ts +++ b/lodash/lodash-tests.ts @@ -585,7 +585,7 @@ result = _.has({ 'a': 1, 'b': 2, 'c': 3 }, 'b'); result = _.invert({ 'first': 'moe', 'second': 'larry' }); - +(function(...args: any[]) { return _.isArguments(arguments); })(1, 2, 3); var mergeNames = { 'stooges': [ @@ -673,9 +673,6 @@ _.isObject({}); _.isObject(1); -// (() => { return _.isArguments(arguments); })(1, 2, 3); -_.isArguments([1, 2, 3]); - _.isFunction(alert); _.isString("moe"); diff --git a/lodash/lodash.d.ts b/lodash/lodash.d.ts index 641acbd88..bb3eb9655 100644 --- a/lodash/lodash.d.ts +++ b/lodash/lodash.d.ts @@ -2346,6 +2346,13 @@ declare module _ { **/ export function invert(object: any): any; + /** + * Checks if value is an arguments object. + * @param value The value to check. + * @return True if the value is an arguments object, else false. + **/ + export function isArguments(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 @@ -2597,13 +2604,6 @@ declare module _ { **/ export function isObject(object: any): boolean; - /** - * Returns true if object is an Arguments object. - * @param object Check if this object is an Arguments object. - * @return True if `object` is an Arguments object, otherwise false. - **/ - export function isArguments(object: any): boolean; - /** * Returns true if object is a Function. * @param object Check if this object is a Function.