lodash: property names and paths can include symbols (#20999)

This commit is contained in:
Georgii Dolzhykov
2017-10-25 11:34:35 -07:00
committed by Sheetal Nandi
parent 86d3bdeb71
commit 07e8b3b014
2 changed files with 4 additions and 1 deletions
+1 -1
View File
@@ -16604,7 +16604,7 @@ declare namespace _ {
type ValueKeyIteratee<T> = ((value: T, key: string) => any) | string | [string, any] | PartialDeep<T>;
type Comparator<T> = (a: T, b: T) => boolean;
type PropertyName = string | number;
type PropertyName = string | number | symbol;
type PropertyPath = Many<PropertyName>;
/** Common interface between Arrays and jQuery objects */
+3
View File
@@ -10620,6 +10620,9 @@ namespace TestFunctionsIn {
// _.get
namespace TestGet {
_.get([], Symbol.iterator);
_.get([], [Symbol.iterator]);
{
let result: string;