© 2026 LinearBytes Inc.
Search posts, tags, users, and pages
Yukulélé
it's a condensed version of this code:
if ( !g.handledFrom && g.from < c.index + e.length && g.from >= c.index ) { a.push({ type: "start", offset: g.from - c.index, marker: g }); g.handledFrom = true; }
Rahul Bisht
web developer
should "g.handledFrom = !0;" be inside IF block?
Peter Scheler
JS enthusiast
Rahul Bisht No. It is the last argument of the a.push call.
a.push
no, `a.push` have only one argument.
Here is the original code indented:
!g.handledFrom && g.from < c.index + e.length && g.from >= c.index && ( a.push({ type: 'start', offset: g.from - c.index, marker: g }), (g.handledFrom = !0) )