Comment

Comment by loarabia

Edge fails in the below code on TrimEnd with this message

Microsoft Edge 44.17763.1.0

Object doesn't support property or method 'trimEnd'

: function createTemplateArr(number) { return '1fr ' .repeat(number) .trimEnd() .split(' ') }

MDN's compat chart doesn't make clear if Edge supports this or not but manual experimentation suggests not although trimRight is supported so a possible polyfill. I filed a bug against Edge just now.

parent loarabia 8 years ago

No comments yet

Be the first to share your thoughts.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton