From 16b0297f8558aad0ef259a15fe220dedc47f25c9 Mon Sep 17 00:00:00 2001 From: Aliou Diallo Date: Wed, 18 Jun 2025 12:10:10 +0200 Subject: [PATCH] fix: Fix examples for `Array#includes` method (#16360) --- packages/workflow/src/native-methods/array.methods.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/workflow/src/native-methods/array.methods.ts b/packages/workflow/src/native-methods/array.methods.ts index 68a22f775b..b21cd5d9b4 100644 --- a/packages/workflow/src/native-methods/array.methods.ts +++ b/packages/workflow/src/native-methods/array.methods.ts @@ -241,8 +241,8 @@ export const arrayMethods: NativeDoc = { name: 'includes', description: 'Returns true if the array contains the specified element', examples: [ - { example: "['Bob', 'Bill', 'Nat'].indexOf('Nat')", evaluated: 'true' }, - { example: "['Bob', 'Bill', 'Nat'].indexOf('Nathan')", evaluated: 'false' }, + { example: "['Bob', 'Bill', 'Nat'].includes('Nat')", evaluated: 'true' }, + { example: "['Bob', 'Bill', 'Nat'].includes('Nathan')", evaluated: 'false' }, ], docURL: 'https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/includes',