I have an angular2 project (2.0.0) using typescript 2.0.4.
I have this code:
var assignedIds: Array<string> = this.AssignedUsers.map(u => u.id);
var users = this.AllUsers.filter(all => all.id != assignedIds.find(id => id == all.id));
I'm getting an error on the find method:
Property 'find' does not exist on type 'string[]'.
I get this error on several arrays - not just this one. A couple are number[], one is string[], and one it a custom object.
If I compile to es6 it works but I need to target es5.
Do I need some typings?