Added _.isMatch function

This commit is contained in:
Daniel Furtado
2015-12-27 16:58:55 +01:00
parent 14c2d0dbb2
commit af6a653112
+20
View File
@@ -1387,6 +1387,14 @@ interface UnderscoreStatic {
**/
isEmpty(object: any): boolean;
/**
* Returns true if the keys and values in `properties` matches with the `object` properties.
* @param object Object to be compared with `properties`.
* @param properties Properties be compared with `object`
* @return True if `object` has matching keys and values, otherwise false.
**/
isMatch(object:any, properties:any): boolean;
/**
* Returns true if object is a DOM element.
* @param object Check if this object is a DOM element.
@@ -2326,6 +2334,12 @@ interface Underscore<T> {
* @see _.isEmpty
**/
isEmpty(): boolean;
/**
* Wrapped type `object`.
* @see _.isMatch
**/
isMatch(): boolean;
/**
* Wrapped type `object`.
@@ -3204,6 +3218,12 @@ interface _Chain<T> {
* @see _.isEmpty
**/
isEmpty(): _Chain<T>;
/**
* Wrapped type `object`.
* @see _.isMatch
**/
isMatch(): _Chain<T>;
/**
* Wrapped type `object`.