export const getIsInclude = < K , V > ( map , key ) => ! ! map . get ( key ) ; export const mapToKeyArray = < K , V > ( map ) => Array . from ( map . keys ( ) ) ; export const flatArrayToMap = < T > ( array ) => { const map = new Map < T , T > ( ) ; array . forEach ( ( item ) => map . set ( item , item ) ) ; return map ; } ;