This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { forEach } from 'lodash'; | |
/** | |
* @author Marco Turi <marco.turi@hotmail.it> | |
* @author Stefano Tedeschi <stefano.tedeschi@protechstudio.it> | |
* This function generates an object composed by N elements (states). | |
* Every element is a boolean and only one of them could be true. | |
* This is usefull if you want to implement for example a TAB menager | |
* where the user can active only one tab/page/component. | |
* @example |