mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-28 12:30:21 +08:00
Added _.isMatch function
This commit is contained in:
1 parent
14c2d0dbb2
commit
af6a653112
1 file changed
+20
Vendored
+20
@@ -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`.
|
||||
|
||||
Reference in new issue
Block a user