dist/storageEngine/MemoryStorageEngine.js
/**
     * Add an id (or a list of them) to a list
     * @param listId id of the list
     * @param id array of ids that should be added
     */
Add an id (or a list of them) to a list
@param listId id of the list
@param id array of ids that should be added
Add an id ( or a list of them ) to a list @param listId id of the list @param id array of ids that should be added
addToList(listId, id) {
        const list = this.getListMembers(listId);
        if (list.includes(id))
            return;
        else
            list.push(id);
        const listExists = !!this.index.get(listId);
        if (!listExists)
            this.index.set(listId, list);
    }
addToList ( listId , id ) { const list = this . getListMembers ( listId ) ; if ( list . includes ( id ) ) return ; else list . push ( id ) ; const listExists = ! ! this . index . get ( listId ) ; if ( ! listExists ) this . index . set ( listId , list ) ; }
Add an id (or a list of them) to a list
 @param listId id of the list
 @param id array of ids that should be added
Add an id ( or a list of them ) to a list @param listId id of the list @param id array of ids that should be added