mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-08-26 11:12:19 +08:00
Merge pull request #4353 from chrootsu/lodash-now
lodash: added now() method
This commit is contained in:
@@ -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 *
|
||||
*************/
|
||||
|
||||
Vendored
+14
@@ -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 *
|
||||
*************/
|
||||
|
||||
Reference in New Issue
Block a user