function selectContacts({ contactIDs = [], isChecked }) {
        if (!contactIDs.length) {
            CACHE.contacts = _.map(get(), (contact) => {
                contact.selected = isChecked;
                return contact;
            });
        }

        contactIDs.forEach((id) => {
            CACHE.map.all[id] && (CACHE.map.all[id].selected = isChecked);
        });
        sync([], 'selected');
    }
/**
     * Check or uncheck contacts
     * @param  {Array} contactIDs by default contains all contact ID
     * @param  {Boolean} isChecked check / uncheck
     */
Check or uncheck contacts
@param  {Array} contactIDs by default contains all contact ID
@param  {Boolean} isChecked check / uncheck
Check or uncheck contacts @param { Array } contactIDs by default contains all contact ID @param { Boolean } isChecked check / uncheck
function selectContacts({ contactIDs = [], isChecked }) {
        if (!contactIDs.length) {
            CACHE.contacts = _.map(get(), (contact) => {
                contact.selected = isChecked;
                return contact;
            });
        }
        contactIDs.forEach((id) => {
            CACHE.map.all[id] && (CACHE.map.all[id].selected = isChecked);
        });
        sync([], 'selected');
    }
function selectContacts ( { contactIDs = [ ] , isChecked } ) { if ( ! contactIDs . length ) { CACHE . contacts = _ . map ( get ( ) , ( contact ) => { contact . selected = isChecked ; return contact ; } ) ; } contactIDs . forEach ( ( id ) => { CACHE . map . all [ id ] && ( CACHE . map . all [ id ] . selected = isChecked ) ; } ) ; sync ( [ ] , 'selected' ) ; }
Check or uncheck contacts
 @param  {Array} contactIDs by default contains all contact ID
 @param  {Boolean} isChecked check / uncheck
Check or uncheck contacts @param { Array } contactIDs by default contains all contact ID @param { Boolean } isChecked check / uncheck