'use strict';

function filter(creep, opts) {
    opts = opts || {};

    return {
        filter: function(target) {
            // Insert code
        }
    };
}

// Room === undefined -> get all
function get(room, option) {

}

module.exports = {
    filter: filter,
    get: get
};

'use strict';

// Filtering done relative to given object
function filter(creep, options) {
    options = options || {};

    return {
        filter: function(target) {
            // Insert code
        }
    };
}

// Filtering done on global level
function find(options) {
    options = options || {};

    return {
        filter: function(target) {

        }
    };
}

// Room === undefined -> get all
// Otherwise, only get result from given room
function get(room, option) {

}

module.exports = {
    filter: filter,
    find: find,
    get: get
};

Update documentation for target extension
Update documentation for target extension
