Closed
Description
I have the following code:
export default class Days extends Array {
today() {
return this.find(day => day.startedAt.isSame(moment(), 'day'));
}
}
This code works if I just copy paste it to the chrome console, but not in create react app:
Anyway to get this to somehow transpile correctly? I tried importing babel-polyfill.
Also, is it possible to somehow tell create-react-app that I don't need to support IE11? Because I think that otherwise, this could work natively, and I wouldn't need a polyfill.
Metadata
Metadata
Assignees
Labels
No labels