UNPKG

blessed-tab-container

Version:

A CLI Multi-Tab Container Utilizing Labels For Blessed

18 lines (14 loc) 392 B
'use strict' const resolveElm = require('../util/resolve_elm') /** * Checks if the underlying element for the provided object is marked as dirty * * @private * @param {object|BlessedTabContainerTabState|BlessedTabContainerConfig} obj * @return {boolean} dirty */ const isDirty = (obj = {}) => { const elm = resolveElm(obj) || {} return !!elm._tabDirty } module.exports = isDirty