diff --git a/lodash/lodash-tests.ts b/lodash/lodash-tests.ts index b16f03b46..e87da2110 100644 --- a/lodash/lodash-tests.ts +++ b/lodash/lodash-tests.ts @@ -611,6 +611,12 @@ result = _.where(stoogesCombined, { 'quotes': ['Poifect!'] } result = _(stoogesCombined).where({ 'age': 40 }).value(); result = _(stoogesCombined).where({ 'quotes': ['Poifect!'] }).value(); +/******** + * Date * + ********/ + +result = _.now(); + /************* * Functions * *************/ diff --git a/lodash/lodash.d.ts b/lodash/lodash.d.ts index 84db97b2d..e2878d595 100644 --- a/lodash/lodash.d.ts +++ b/lodash/lodash.d.ts @@ -4795,6 +4795,20 @@ declare module _ { where(properties: U): LoDashArrayWrapper; } + /******** + * 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 * *************/