mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
added _.isArguments definition
This commit is contained in:
@@ -585,7 +585,7 @@ result = <boolean>_.has({ 'a': 1, 'b': 2, 'c': 3 }, 'b');
|
||||
|
||||
result = <any>_.invert({ 'first': 'moe', 'second': 'larry' });
|
||||
|
||||
|
||||
(function(...args: any[]) { return <boolean>_.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");
|
||||
|
||||
Vendored
+7
-7
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user