Überprüfen Sie, ob das Objekt einen Key Lodash hat

_.has(obj, 'key');
Crowded Cottonmouth