src/Utility/Collection.js
/**
     * Remove an object
     *
     * @param {String} key - The ID of the object
     * @returns {T} The removed object, or null if nothing was removed
     * @memberof Collection
     */
Remove an object
@param {String} key - The ID of the object
@returns {T} The removed object, or null if nothing was removed
@memberof Collection
Remove an object @param { String } key - The ID of the object @returns { T } The removed object or null if nothing was removed @memberof Collection
remove(key) {
        const item = this.get(key);
        if (!item) {
            return null;
        }
        this.delete(key);
        return item;
    }
remove ( key ) { const item = this . get ( key ) ; if ( ! item ) { return null ; } this . delete ( key ) ; return item ; }
Remove an object
 @param {String} key - The ID of the object
 @returns {T} The removed object, or null if nothing was removed
 @memberof Collection
Remove an object @param { String } key - The ID of the object @returns { T } The removed object or null if nothing was removed @memberof Collection