mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-02 11:50:18 +08:00
lodash: added _.isTypedArray() method
This commit is contained in:
1 parent
5109e1269d
commit
5fa6cb111b
2 files changed
+21
No files matched your search
@@ -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