export interface IIndexedObject { [ key ] : any ; } export function isArray ( v ) { return Array . isArray ( v ) ; } let id = 0 ; export function genId ( prefix = 'g-' ) { id += 1 ; return `${ prefix }${ id }` ; }