src/uki-core.js
function uki(val, context) {
    if (typeof val === "string") {
        return selector.find(val, context);
    }
    if (val.length === undefined) { val = [val]; }
    if (val.length > 0 && utils.isFunction(val[0].typeName)) {
        return new collection.Collection(val);
    }
    return builder.build(val);
}
function uki(val, context) {
    if (typeof val === "string") {
        return selector.find(val, context);
    }
    if (val.length === undefined) { val = [val]; }
    if (val.length > 0 && utils.isFunction(val[0].typeName)) {
        return new collection.Collection(val);
    }
    return builder.build(val);
}
Shortcut access to builder, selector and
Collection constructor

@param {String|view.Base|Object|Array.<view.Base>} val
@param {Array.<view.Base>=} optional context for selector
@class
@namespace
@return {Collection}