diff --git a/lodash/lodash-tests.ts b/lodash/lodash-tests.ts index d36b5dfc4..b72ddddcb 100644 --- a/lodash/lodash-tests.ts +++ b/lodash/lodash-tests.ts @@ -1086,6 +1086,14 @@ result = _([1]).toPlainObject(); result = _([]).toPlainObject(); result = _({}).toPlainObject(); +/******** + * Math * + ********/ + +// _.add +result = _.add(1, 1); +result = _(1).add(1); + /********** * Objects * ***********/ diff --git a/lodash/lodash.d.ts b/lodash/lodash.d.ts index 7c4111746..b576ccd7e 100644 --- a/lodash/lodash.d.ts +++ b/lodash/lodash.d.ts @@ -5908,6 +5908,28 @@ declare module _ { toPlainObject(value?: any): Object; } + /******** + * Math * + ********/ + + //_.add + interface LoDashStatic { + /** + * Adds two numbers. + * @param augend The first number to add. + * @param addend The second number to add. + * @return Returns the sum. + */ + add(augend: number, addend: number): number; + } + + interface LoDashWrapper { + /** + * @see _.add + */ + add(addend: number): number; + } + /************* * Objects * *************/