Message from JavaScript discussions

October 2017

— I am just asking for the lodash part

— 

function validateDataObj(data) {
const keys = Object.keys(data);
return keys.length === keys.filter(x =>
[ 'List', 'Group', 'email' ].includes(x)).length;
}

?

— Wait, this might not do the same thing

— Fuck, I can't read lodash like you

— That stuff is cryptic to me

— Standard stuff from Vue style guide

— I mean the lodash stuff

— What is _.every? what is _.hasIn?

— It's like .every

— HasIn(a,b) checks if b is a key of a

— And returns true if there is

— Alright...