Notice the error message at the bottom: "config.ts(19,28): error TS2339: Property 'find' does not exist on type 'Answer[]". I thought all arrays would have a "find" method.
I am sure I am missing something!

Notice the error message at the bottom: "config.ts(19,28): error TS2339: Property 'find' does not exist on type 'Answer[]". I thought all arrays would have a "find" method.
I am sure I am missing something!

Since Typescript 2.0 you could also use the --lib compiler flag or a "lib": [] section in your tsconfig.js file to include ES6 features, while still targeting ES5. See https://github.com/Microsoft/TypeScript/issues/6974
In this case just include the following configuration options in your tsconfig.js:
...
"lib": [ "es6" ],
"target": "es5"
...
I got a similar issue from a node application. where I start files from scratch. What I did to solve the issue is to install the "@types/node" package to my project. To install the package I used the following command
npm install @types/node --save-dev
This solution might be helpful for those who started to learn Typescript from the beginning.
So... If you use Typescript then you could be using Array.prototype.find() because Typescript is a superset of javascript. BUT because you 'compile' to ES5 you get the error, because the method find is part of ES6 (ES2015), but not ES5.
It took me a while to realize of this obvious fact. It is not your typescript, it is to what you target.
I guess the answer was included in the comment by kkaosninja: find is part of es6 and I am still on es5: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/find