mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Update sugar.d.ts
Fix Array.subtract
This commit is contained in:
Vendored
+6
-1
@@ -2813,7 +2813,12 @@ interface Array<T> {
|
||||
* ['a','b'].subtract('b','c') -> ['a']
|
||||
**/
|
||||
subtract(...args: T[]): T[];
|
||||
|
||||
|
||||
/**
|
||||
* @see subtract
|
||||
**/
|
||||
subtract(args: T[]): T[];
|
||||
|
||||
/**
|
||||
* Sums all values in the array.
|
||||
* @param map Property on each element in the array or callback function to sum up the elements.
|
||||
|
||||
Reference in New Issue
Block a user