lodash: added _.isBuffer

This commit is contained in:
Ilya Mochalov
2016-02-22 23:29:15 +05:00
parent 95433230a9
commit a734d7bd3c
2 changed files with 45 additions and 0 deletions
+20
View File
@@ -6371,6 +6371,26 @@ module TestIsBoolean {
}
}
// _.isBuffer
module TestIsBuffer {
{
let result: boolean;
result = _.isBuffer(any);
result = _(1).isBuffer();
result = _<any>([]).isBuffer();
result = _({}).isBuffer();
}
{
let result: _.LoDashExplicitWrapper<boolean>;
result = _(1).chain().isBuffer();
result = _<any>([]).chain().isBuffer();
result = _({}).chain().isBuffer();
}
}
// _.isDate
module TestIsBoolean {
{
+25
View File
@@ -11159,6 +11159,31 @@ declare module _ {
isBoolean(): LoDashExplicitWrapper<boolean>;
}
//_.isBuffer
interface LoDashStatic {
/**
* Checks if value is a buffer.
*
* @param value The value to check.
* @return Returns true if value is a buffer, else false.
*/
isBuffer(value?: any): boolean;
}
interface LoDashImplicitWrapperBase<T, TWrapper> {
/**
* @see _.isBuffer
*/
isBuffer(): boolean;
}
interface LoDashExplicitWrapperBase<T, TWrapper> {
/**
* @see _.isBuffer
*/
isBuffer(): LoDashExplicitWrapper<boolean>;
}
//_.isDate
interface LoDashStatic {
/**