added _.isArguments definition

This commit is contained in:
Brian Zengel
2013-10-20 13:04:18 -04:00
parent af8969f047
commit a98537ef05
2 changed files with 8 additions and 11 deletions
+1 -4
View File
@@ -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");
+7 -7
View File
@@ -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.