fix(curriculum): typo in test output (#48677)

pull/48681/head
Lasse Jørgensen 2022-12-06 17:36:41 +01:00 committed by GitHub
parent ccdf68bdea
commit 60189fb119
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ const _callback = element => element.toUpperCase();
assert(JSON.stringify(_test_s.map(_callback)) === JSON.stringify(_test_s.myMap(_callback))); assert(JSON.stringify(_test_s.map(_callback)) === JSON.stringify(_test_s.myMap(_callback)));
``` ```
`[1, 1, 2, 5, 2].myMap((element, index, array) => array[i + 1] || array[0])` should return `[1, 2, 5, 2, 1]`. `[1, 1, 2, 5, 2].myMap((element, index, array) => array[index + 1] || array[0])` should return `[1, 2, 5, 2, 1]`.
```js ```js
const _test_s = [1, 1, 2, 5, 2]; const _test_s = [1, 1, 2, 5, 2];