Please good use of programming basic skills
Do you know what recursive, IIFE, ternary operation, and short circuit are? A basic-level developer/programmer should know these skills which can make you code simplify so much.
First, let's look this code:
checkError(obj) {
let errorMessage = ''
if (!_.isNull(obj)) {