TypeError: Array.includes is not a function @0.0.4
See original GitHub issueI got this error message in both client (Chrome v.57) & server code.
I20161228-11:17:22.178(7)? Exception in setInterval callback: TypeError: Array.includes is not a function
I20161228-11:17:22.180(7)? at Object.runAV (node_modules\simpl-schema\dist\clean\setAutoValues.js:51:15)
Issue Analytics
- State:
- Created 7 years ago
- Reactions:12
- Comments:17 (1 by maintainers)
Top Results From Across the Web
TypeError: includes is not a function in JavaScript | bobbyhadz
The "includes is not a function" error occurs when the includes() method is called on a value that is not of type string...
Read more >Object.includes is not a function in old Chrome - Stack Overflow
I assume your obj variable is actually an array, as seen in the first line of your logs.
Read more >TypeError: includes is not a function in JavaScript - Linux Hint
The “includes is not a function” type error occurs when the includes() method is accessed on a value that is neither of the...
Read more >How to solve includes is not a function in JavaScript - Reactgo
The “includes is not a function” error occurs when we call a includes() method on a value other than the strings or arrays....
Read more >Node.js v19.3.0 Documentation
stack <Object> A stack trace of the function. The arrays contains information about the expected and actual number of calls of the functions...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Personally, I prefer @eluck 's last snippet. It’s small, and essentially the only thing required. Adding the entire
babel-polyfill
seems overkill.Preferably, this should be refactored in this source, though.
Created a PR (#42) to fix this issue. Given the project already requires underscore, I opted for using
_.contains
.