@@ -218,7 +218,7 @@ function printProperties({ props }) {
218218
219219 if ( argv . filter ) {
220220 keys . forEach ( key => {
221- if ( key . indexOf ( argv . filter ) === - 1 ) {
221+ if ( key . includes ( argv . filter ) === false ) {
222222 delete props [ key ]
223223 }
224224 } )
@@ -246,7 +246,7 @@ function printSlots({ slots }) {
246246
247247 if ( argv . filter !== void 0 ) {
248248 keys . forEach ( key => {
249- if ( key . indexOf ( argv . filter ) === - 1 ) {
249+ if ( key . includes ( argv . filter ) === false ) {
250250 delete slots [ key ]
251251 }
252252 } )
@@ -274,7 +274,7 @@ function printEvents({ events }) {
274274
275275 if ( argv . filter !== void 0 ) {
276276 keys . forEach ( key => {
277- if ( key . indexOf ( argv . filter ) === - 1 ) {
277+ if ( key . includes ( argv . filter ) === false ) {
278278 delete events [ key ]
279279 }
280280 } )
@@ -312,7 +312,7 @@ function printMethods({ methods }) {
312312
313313 if ( argv . filter !== void 0 ) {
314314 keys . forEach ( key => {
315- if ( key . indexOf ( argv . filter ) === - 1 ) {
315+ if ( key . includes ( argv . filter ) === false ) {
316316 delete methods [ key ]
317317 }
318318 } )
@@ -357,7 +357,7 @@ function printComputedProps({ computedProps }) {
357357
358358 if ( argv . filter ) {
359359 keys . forEach ( key => {
360- if ( key . indexOf ( argv . filter ) === - 1 ) {
360+ if ( key . includes ( argv . filter ) === false ) {
361361 delete computedProps [ key ]
362362 }
363363 } )
@@ -407,7 +407,7 @@ function printModifiers({ modifiers }) {
407407
408408 if ( argv . filter !== void 0 ) {
409409 keys . forEach ( key => {
410- if ( key . indexOf ( argv . filter ) === - 1 ) {
410+ if ( key . includes ( argv . filter ) === false ) {
411411 delete modifiers [ key ]
412412 }
413413 } )
@@ -448,7 +448,7 @@ function printQuasarConfOptions({ quasarConfOptions }) {
448448
449449 if ( argv . filter !== void 0 ) {
450450 keys . forEach ( key => {
451- if ( key . indexOf ( argv . filter ) === - 1 ) {
451+ if ( key . includes ( argv . filter ) === false ) {
452452 delete conf [ key ]
453453 }
454454 } )
@@ -553,7 +553,7 @@ async function listElements() {
553553 if ( filter ) {
554554 const needle = filter . toLowerCase ( )
555555 const filterBanner = green ( filter )
556- api = api . filter ( entry => entry . toLowerCase ( ) . indexOf ( needle ) !== - 1 )
556+ api = api . filter ( entry => entry . toLowerCase ( ) . includes ( needle ) )
557557
558558 if ( api . length === 0 ) {
559559 console . log (
0 commit comments