The debugger statement causes the JavaScript runtime to pause execution and start a debugger if one is available, such as when browser developer tools are open.
While this can be useful during development, it should not be left in production code as it can cause unexpected pauses in execution.
Calls a defined callback function on each element of an array, and returns an array that contains the results.
@param ― callbackfn A function that accepts up to three arguments. The map method calls the callbackfn function one time for each element in the array.
@param ― thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.
Calls a defined callback function on each element of an array, and returns an array that contains the results.
@param ― callbackfn A function that accepts up to three arguments. The map method calls the callbackfn function one time for each element in the array.
@param ― thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.
If your app isn’t shipped to production users, you might choose to disable this rule.
For example, if you’re developing a local-only application where pausing in a debugger when dev tools are open is acceptable behavior, this rule might not be useful to you.