Wrong method

Report a typo

A wrong method was used in the snippet below. Write what should be used instead of it (only the name of the method is needed).

const { equal } = require('node:assert');

const findFirstItem = (arr) => {
    equal(arr[0], 'One Plus');
    return arr[0]
};

findFirstItem([['One Plus'], 'Google Pixel', 'iPhone']);
Enter a short text
___

Create a free account to access the full topic