Answer the question
In order to leave comments, you need to log in
Return the key of the object, in the array of which a match was found with the error that was passed, what am I doing wrong?
There is an object:
const obj = {
defaultError: ['A1', 'A2'],
redirect: ['B1', 'B2']
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question