function fromSet(code, cb) {
    const ret = (cb) => {
        APIRequest(`/cards/search?order=set&q=%2B%2Be%3A${code}`, (resp) => {
            cb(resp);
        }, true);
    };
    if (cb) {
        ret(cb);
    }
    else {
        return new Promise((resolve, reject) => ret(resolve));
    }
}
/**
 * Fetches all the cards printed in a set with the specified code.
 * @param code The code of the set to search for.
 * @param cb An optional callback to pass card data to.
 * @returns A promise, if no callback is specified. Otherwise nothing.
 */
Fetches all the cards printed in a set with the specified code.
@param code The code of the set to search for.
@param cb An optional callback to pass card data to.
@returns A promise, if no callback is specified. Otherwise nothing.
Fetches all the cards printed in a set with the specified code . @param code The code of the set to search for . @param cb An optional callback to pass card data to . @returns A promise if no callback is specified . Otherwise nothing .
function fromSet(code, cb) {
    const ret = (cb) => {
        APIRequest(`/cards/search?order=set&q=%2B%2Be%3A${code}`, (resp) => {
            cb(resp);
        }, true);
    };
    if (cb) {
        ret(cb);
    }
    else {
        return new Promise((resolve, reject) => ret(resolve));
    }
}
function fromSet ( code , cb ) { const ret = ( cb ) => { APIRequest ( ` ${ code } ` , ( resp ) => { cb ( resp ) ; } , true ) ; } ; if ( cb ) { ret ( cb ) ; } else { return new Promise ( ( resolve , reject ) => ret ( resolve ) ) ; } }
Fetches all the cards printed in a set with the specified code.
Fetches all the cards printed in a set with the specified code .