mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-09 10:36:43 +02:00
Lint fixes
This commit is contained in:
@@ -1144,10 +1144,10 @@ config.git.arrowMarkerAbsolute = config.arrowMarkerAbsolute;
|
||||
|
||||
const keyify = (obj, prefix = '') =>
|
||||
Object.keys(obj).reduce((res, el) => {
|
||||
if( Array.isArray(obj[el]) ) {
|
||||
if (Array.isArray(obj[el])) {
|
||||
return res;
|
||||
} else if( typeof obj[el] === 'object' && obj[el] !== null ) {
|
||||
return [...res, prefix + el, ...keyify(obj[el],'')];
|
||||
} else if (typeof obj[el] === 'object' && obj[el] !== null) {
|
||||
return [...res, prefix + el, ...keyify(obj[el], '')];
|
||||
}
|
||||
return [...res, prefix + el];
|
||||
}, []);
|
||||
|
Reference in New Issue
Block a user