Merge pull request #4353 from chrootsu/lodash-now

lodash: added now() method
This commit is contained in:
Masahiro Wakame
2015-05-15 00:11:26 +09:00
2 changed files with 20 additions and 0 deletions
+6
View File
@@ -611,6 +611,12 @@ result = <IStoogesCombined[]>_.where(stoogesCombined, { 'quotes': ['Poifect!'] }
result = <IStoogesCombined[]>_(stoogesCombined).where({ 'age': 40 }).value();
result = <IStoogesCombined[]>_(stoogesCombined).where({ 'quotes': ['Poifect!'] }).value();
/********
* Date *
********/
result = <number>_.now();
/*************
* Functions *
*************/
+14
View File
@@ -4795,6 +4795,20 @@ declare module _ {
where<T, U extends {}>(properties: U): LoDashArrayWrapper<T>;
}
/********
* Date *
********/
//_.now
interface LoDashStatic {
/**
* Gets the number of milliseconds that have elapsed since the Unix epoch
* (1 January 1970 00:00:00 UTC).
* @return The number of milliseconds.
**/
now(): number;
}
/*************
* Functions *
*************/