src/resource/index.js
/**
 * Remove resource with given name from list of resources.
 * 
 * @param {String} name
 *      Name of resource that should be removed (case-insensitive).
 * @return {Object | null}
 *      Object that represents removed resource
 *      or <code>null</code> if no one of resources from list has the specified name.
 * @alias module:resource.remove
 */
Remove resource with given name from list of resources.

@param {String} name
Name of resource that should be removed (case-insensitive).
@return {Object | null}
Object that represents removed resource
or null if no one of resources from list has the specified name.
Remove resource with given name from list of resources . @param { String } name Name of resource that should be removed ( case - insensitive ) . @return { Object | null } Object that represents removed resource or null if no one of resources from list has the specified name .
function remove(name) {
    var sId = name.toLowerCase(),
        nI, nL, resource;
    if (sId in resourceMap) {
        for (nI = 0, nL = resourceList.length; nI < nL; nI++) {
            if ((resource = resourceList[nI]).id === sId) {
                resourceList.splice(nI, 1);
                delete resourceMap[sId];
                return resource;
            }
        }
    }
    return null;
}
function remove ( name ) { var sId = name . toLowerCase ( ) , nI , nL , resource ; if ( sId in resourceMap ) { for ( nI = 0 , nL = resourceList . length ; nI < nL ; nI ++ ) { if ( ( resource = resourceList [ nI ] ) . id === sId ) { resourceList . splice ( nI , 1 ) ; delete resourceMap [ sId ] ; return resource ; } } } return null ; }
Remove resource with given name from list of resources.
Remove resource with given name from list of resources .