Javascript function Object.keys seems to not work correct:
public availableParents: any[] = [];
availableParents[abbreviation] = textField;
the field availableParents is sent to a function.
Then in debug mode I dispay the variable ... and also an Object.keys on the variable :
Immediate window :
?dataSource
[]
__proto__: []
ALG: "ALG | Alg"
length: 0
SC-1-1: "Scene"
? Object.keys(dataSource)
[SC-1-1,ALG]
__proto__: []
length: 2
[0]: "SC-1-1"
[1]: "ALG"
I would have expected that Object.keys would return (?) :
[ALG,SC-1-1]
__proto__: []
length: 2
[0]: "ALG"
[1]: "SC-1-1"
availableParents = empty list... I've never felt so sad reading code...