lodash: trim trailing whitespace characters

This commit is contained in:
Ilya Mochalov
2015-09-01 10:12:23 +05:00
parent a278148f0e
commit 5075a34165
+9 -9
View File
@@ -694,9 +694,9 @@ declare module _ {
takeWhile<T>(
array: (Array<T>|List<T>),
predicate?: ListIterator<T, boolean>,
thisArg?: any
thisArg?: any
): T[];
/**
* Takes the first items from an array or list based on a predicate
* @param array The array or list of items on which the result set will be based
@@ -706,7 +706,7 @@ declare module _ {
array: (Array<T>|List<T>),
pluckValue: string
): any[];
/**
* Takes the first items from an array or list based on a predicate
* @param array The array or list of items on which the result set will be based
@@ -1502,7 +1502,7 @@ declare module _ {
**/
union<T>(...arrays: List<T>[]): T[];
}
interface LoDashArrayWrapper<T> {
/**
* @see _.union
@@ -2514,13 +2514,13 @@ declare module _ {
/**
* Iterates over elements of a collection, returning an array of all elements the
* identity function returns truey for.
*
*
* @param collection The collection to iterate over.
* @return Returns a new array of elements that passed the callback check.
**/
filter<T>(
collection: (Array<T>|List<T>)): T[];
/**
* Iterates over elements of a collection, returning an array of all elements the
* callback returns truey for. The callback is bound to thisArg and invoked with three
@@ -2683,7 +2683,7 @@ declare module _ {
* @see _.filter
**/
filter(): LoDashArrayWrapper<T>;
/**
* @see _.filter
**/
@@ -5096,7 +5096,7 @@ declare module _ {
sortBy<W, T>(
collection: List<T>,
whereValue: W): T[];
/**
* Sorts by all the given arguments, using either ListIterator, pluckValue, or whereValue foramts
* @param args The rules by which to sort
@@ -5126,7 +5126,7 @@ declare module _ {
* @param whereValue _.where style callback
**/
sortBy<W>(whereValue: W): LoDashArrayWrapper<T>;
/**
* Sorts by all the given arguments, using either ListIterator, pluckValue, or whereValue foramts
* @param args The rules by which to sort