import { objType } from '../../../store/common/type' ; export const VISIBLE = 1 ; export const INVISIBLE = 0 ; export function getIdsFromLayersArr ( seperatedLayers ) { if ( ! seperatedLayers ) return [ ] ; return seperatedLayers . map ( ( layer ) => layer . id ) ; } export function getIdsFromLayersArrWithType ( seperatedLayers , type ) { if ( ! seperatedLayers ) return [ ] ; return seperatedLayers . filter ( ( layer ) => type === layer . type ) . map ( ( layer ) => layer . id ) ; } export function getIdsFromLayersArrWithoutType ( seperatedLayers , type ) { if ( ! seperatedLayers ) return [ ] ; return seperatedLayers . filter ( ( layer ) => type !== layer . type ) . map ( ( layer ) => layer . id ) ; }