diff --git a/lodash/lodash-tests.ts b/lodash/lodash-tests.ts index 3ba4db7128..33068df115 100644 --- a/lodash/lodash-tests.ts +++ b/lodash/lodash-tests.ts @@ -1195,6 +1195,12 @@ result = _(1).gte(2); result = _([]).gte(2); result = _({}).gte(2); +// _.isArguments +result = _.isArguments(any); +result = _(1).isArguments(); +result = _([]).isArguments(); +result = _({}).isArguments(); + // _.isArray result = _.isArray(any); result = _(1).isArray(); @@ -1455,8 +1461,6 @@ interface FirstSecond { } result = _.invert({ 'first': 'moe', 'second': 'larry' }); -(function (...args: any[]) { return _.isArguments(arguments); })(1, 2, 3); - result = _.isBoolean(null); result = _.isElement(document.body); diff --git a/lodash/lodash.d.ts b/lodash/lodash.d.ts index 746329aab2..df46733b29 100644 --- a/lodash/lodash.d.ts +++ b/lodash/lodash.d.ts @@ -6162,6 +6162,23 @@ declare module _ { gte(other: any): boolean; } + //_.isArguments + interface LoDashStatic { + /** + * Checks if value is classified as an arguments object. + * @param value The value to check. + * @return Returns true if value is correctly classified, else false. + */ + isArguments(value?: any): boolean; + } + + interface LoDashWrapperBase { + /** + * @see _.isArguments + */ + isArguments(): boolean; + } + //_.isArray interface LoDashStatic { /** @@ -7011,16 +7028,6 @@ declare module _ { invert(object: any): any; } - //_.isArguments - interface LoDashStatic { - /** - * Checks if value is an arguments object. - * @param value The value to check. - * @return True if the value is an arguments object, else false. - **/ - isArguments(value?: any): boolean; - } - //_.isBoolean interface LoDashStatic { /**