mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-08-26 11:12:19 +08:00
lodash: added _.isTypedArray() method
This commit is contained in:
@@ -1075,6 +1075,10 @@ result = <boolean>_({}).isMatch({}, testIsMatchCustiomizerFn, {});
|
||||
result = <boolean>_.isNative(Array.prototype.push);
|
||||
result = <boolean>_(Array.prototype.push).isNative();
|
||||
|
||||
// _.isTypedArray
|
||||
result = <boolean>_.isTypedArray([]);
|
||||
result = <boolean>_([]).isTypedArray();
|
||||
|
||||
// _.lt
|
||||
result = <boolean>_.lt(1, 2);
|
||||
result = <boolean>_(1).lt(2);
|
||||
|
||||
Vendored
+17
@@ -5905,6 +5905,23 @@ declare module _ {
|
||||
isNative(): boolean;
|
||||
}
|
||||
|
||||
//_.isTypedArray
|
||||
interface LoDashStatic {
|
||||
/**
|
||||
* Checks if value is classified as a typed array.
|
||||
* @param value The value to check.
|
||||
* @return Returns true if value is correctly classified, else false.
|
||||
*/
|
||||
isTypedArray(value: any): boolean;
|
||||
}
|
||||
|
||||
interface LoDashWrapperBase<T, TWrapper> {
|
||||
/**
|
||||
* see _.isTypedArray
|
||||
*/
|
||||
isTypedArray(): boolean;
|
||||
}
|
||||
|
||||
//_.lt
|
||||
interface LoDashStatic {
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user