const dataSet = { f_name: 'F_NAME', l_name: 'L_NAME', email: 'EMAIL'}
Object.prototype.hasOwnProperty.call(profile, 'f_name') //Return true
{
methods: {
containsKey(obj, key ) {
return Object.keys(obj).includes(key);
}
},
computed: {
hasName() {
return this.containsKey(this.someObject, 'name');
}
}
}