Object doesn’t support property or method ‘find’ in IE

In this article we will show you how to fix the error Object doesn’t support property or method ‘find’ in IE during the react application development.

Object doesn’t support property or method ‘find’ in IE react, find() not working in all browsers, IE 11 issue – .find() is not supported, IE11: Object doesn’t support property or method ‘find’, Alternative of .find() in Internet Explorer, Crash in IE11 for javascript usage of “find”.

If you look at the documentation of find(), most of the browsers don’t support this property same as includes().

Way to Fixed the error: Object doesn’t support property or method ‘find’ in IE

  1. Use filter method instead of find
  2. Use the polyfill

1. Use filter method instead of find

You can use widely supported filter() method instead of find(). Look at the below example where we used filter method instead of find method.

2. Use the polyfill

You can also use the polyfill from MDN. Add below script on top of the all imports and it will work.

Output:

I have created a new file as “polyfill.js” and added above script to load React Application in IE. Your index.js page should look like below.

index.js

If you found value in this article,
you can support us by buying me a coffee! ☕

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *