Making your Angular 2 library statically analyzable for AoT
Isaac Mann
10330

The code below:

```
export function mapObjectIntoArray(o: any) {
 function mapper(key) {
 return o[key];
 }
 return Object.keys(o).map(mapper);
}
```

Produces the error:

ERROR in Error encountered resolving symbol values statically. Calling function ‘mapObjectIntoArray’, function calls are not supported. Consider replacing the function or lambda with a reference to an exported function

Show your support

Clapping shows how much you appreciated Luiz Filipre Freitas Carneiro’s story.