diff --git a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/intermediate-algorithm-scripting/steamroller.english.md b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/intermediate-algorithm-scripting/steamroller.english.md index f096c314e6..91fc3569a0 100644 --- a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/intermediate-algorithm-scripting/steamroller.english.md +++ b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/intermediate-algorithm-scripting/steamroller.english.md @@ -30,7 +30,8 @@ tests: testString: assert.deepEqual(steamrollArray([1, [], [3, [[4]]]]), [1, 3, 4]); - text: steamrollArray([1, {}, [3, [[4]]]]) should return [1, {}, 3, 4]. testString: assert.deepEqual(steamrollArray([1, {}, [3, [[4]]]]), [1, {}, 3, 4]); - + - text: Your solution should not use the Array.prototype.flat() or Array.prototype.flatMap() methods. + testString: assert(!code.match(/\.flat\([\s\S]*?\)/) && !code.match(/\.flatMap\([\s\S]*?\)/)); ```