|
@ChromeDevTools | |||||
|
Ever wondered how to break on Array.prototype.sort, but only if every element in the array is a hiragana character? pic.twitter.com/kTcVQe7GAy
|
||||||
|
||||||
|
Mem's
@mmems
|
30. stu |
|
Is it an upcoming feature or it’s undocumented? developers.google.com/web/tools/chro…
|
||
|
|
||
|
Chrome DevTools
@ChromeDevTools
|
30. stu |
|
It been there for quite some time. developers.google.com/web/tools/chro…
|
||
|
|
||
|
Mathias Bynens
@mathias
|
29. stu |
|
Code review: LGTM
Nit: use String.raw to avoid the need to escape `\`
|
||
|
|
||
|
Ingvar Stepanyan
@RReverser
|
29. stu |
|
I hope your "code review: LGTM" applies to console code not the one in Sources panel. Otherwise I'm surprised you didn't comment on this :P twitter.com/zerkms/status/…
|
||
|
|
||
|
Ivan Kurnosov
@zerkms
|
29. stu |
|
One must reminder though: `split('')` can break unicode characters, hence a spread syntax would be preferred, eg `[...'abc'].sort()`
|
||
|
|
||
|
Fake “Unicode.” ↙️
@FakeUnicode
|
30. stu |
|
ES5 compatible trick: '💩💩💩'.match(/([\ud800-\udbff][\udc00-\udfff]|[^])/g)
|
||
|
|
||
|
IJK
@iconjack
|
29. stu |
|
nope
|
||
|
|
||
|
Lawrence Cushman
@LCushman
|
30. stu |
|
Yes! These are the problems which keep me up at night!
|
||
|
|
||
|
mika
@OH_NOES
|
29. stu |
|
Uhhhhhhhh no?
|
||
|
|
||
|
Loskir
@Losk1r
|
29. stu |
|
Well what?
|
||
|
|
||