mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
lodash: added _.isNative() method
This commit is contained in:
@@ -1069,6 +1069,10 @@ result = <boolean>_({}).isMatch({});
|
||||
result = <boolean>_({}).isMatch({}, testIsMatchCustiomizerFn);
|
||||
result = <boolean>_({}).isMatch({}, testIsMatchCustiomizerFn, {});
|
||||
|
||||
// _.isNative
|
||||
result = <boolean>_.isNative(Array.prototype.push);
|
||||
result = <boolean>_(Array.prototype.push).isNative();
|
||||
|
||||
// _.lt
|
||||
result = <boolean>_.lt(1, 2);
|
||||
result = <boolean>_(1).lt(2);
|
||||
|
||||
Vendored
+17
@@ -5888,6 +5888,23 @@ declare module _ {
|
||||
isMatch(source: Object, customizer?: isMatchCustomizer, thisArg?: any): boolean;
|
||||
}
|
||||
|
||||
//_.isNative
|
||||
interface LoDashStatic {
|
||||
/**
|
||||
* Checks if value is a native function.
|
||||
* @param value The value to check.
|
||||
* @retrun Returns true if value is a native function, else false.
|
||||
*/
|
||||
isNative(value: any): boolean;
|
||||
}
|
||||
|
||||
interface LoDashWrapperBase<T, TWrapper> {
|
||||
/**
|
||||
* see _.isNative
|
||||
*/
|
||||
isNative(): boolean;
|
||||
}
|
||||
|
||||
//_.lt
|
||||
interface LoDashStatic {
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user