Skip to content

Commit

Permalink
added default value for the first method in typings
Browse files Browse the repository at this point in the history
  • Loading branch information
Boyd committed Aug 28, 2018
1 parent 11ca7a9 commit 693fb44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.d.ts
Expand Up @@ -108,7 +108,7 @@ declare module 'collect.js' {
/**
* The first method returns the first element in the collection that passes a given truth test.
*/
first(fn?: (item: Item) => boolean): Item;
first<V>(fn?: (item: Item) => boolean, defaultValue?: (...any: any[]) => V | Item): Item;

/**
* The flatMap method iterates through the collection and passes each value to the given callback.
Expand Down

0 comments on commit 693fb44

Please sign in to comment.