Has

Has is a boolean function that returns true and false if the key already has a value or not

Example:-

const db = require('hive-db');

if(db.has('bio.name')){
//because the database already has a name i.e., Lason
console.log('you already have a name stored!');

}

Last updated