mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
@@ -469,10 +469,12 @@ result = <number>_.size('curly');
|
||||
result = <boolean>_.some([null, 0, 'yes', false], Boolean);
|
||||
result = <boolean>_.some(foodsCombined, 'organic');
|
||||
result = <boolean>_.some(foodsCombined, { 'type': 'meat' });
|
||||
result = <boolean>_.some(foodsOrganic[0]);
|
||||
|
||||
result = <boolean>_.any([null, 0, 'yes', false], Boolean);
|
||||
result = <boolean>_.any(foodsCombined, 'organic');
|
||||
result = <boolean>_.any(foodsCombined, { 'type': 'meat' });
|
||||
result = <boolean>_.any(foodsOrganic[0]);
|
||||
|
||||
result = <number[]>_.sortBy([1, 2, 3], function (num) { return Math.sin(num); });
|
||||
result = <number[]>_.sortBy([1, 2, 3], function (num) { return this.sin(num); }, Math);
|
||||
|
||||
Vendored
+16
@@ -3933,6 +3933,14 @@ declare module _ {
|
||||
callback?: ListIterator<T, boolean>,
|
||||
thisArg?: any): boolean;
|
||||
|
||||
/**
|
||||
* @see _.some
|
||||
**/
|
||||
some(
|
||||
collection: {},
|
||||
callback?: ListIterator<{}, boolean>,
|
||||
thisArg?: any): boolean;
|
||||
|
||||
/**
|
||||
* @see _.some
|
||||
* @param pluckValue _.pluck style callback
|
||||
@@ -4005,6 +4013,14 @@ declare module _ {
|
||||
callback?: ListIterator<T, boolean>,
|
||||
thisArg?: any): boolean;
|
||||
|
||||
/**
|
||||
* @see _.some
|
||||
**/
|
||||
any(
|
||||
collection: {},
|
||||
callback?: ListIterator<{}, boolean>,
|
||||
thisArg?: any): boolean;
|
||||
|
||||
/**
|
||||
* @see _.some
|
||||
* @param pluckValue _.pluck style callback
|
||||
|
||||
Reference in New Issue
Block a user