src/expand.js
Function expand
has 89 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const expand = function expand(db, level) {
const createUserDB = function createUserDB(dbName) {
// With Hooks
const sub = levelSublevel(level);
const graphLevel = sub.sublevel(dbName);
Function conceptToList
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const conceptToList = function conceptToList(term, depth, cb) {
if (_.isFunction(depth)) {
cb = depth;
depth = 0;
}