lodash: added _.isTypedArray() method

This commit is contained in:
Ilya Mochalov
2015-08-16 03:44:03 +05:00
parent 5109e1269d
commit 5fa6cb111b
2 changed files with 21 additions and 0 deletions
+4
View File
@@ -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);
+17
View File
@@ -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 {
/**