src/components/meta/Property/Type.js
function(value, type, property, fields, object) {
        if (_.isUndefined(value) || _.isNull(value)) {
            return value;
        }
        var params = {};

        if (_.isArray(type)) {
            params = type[1] || {};
            type   = type[0];
        }

        if (!(type in this._types)) {
            throw new Error('Property type "' + type + '" does not exist!');
        }

        return this._types[type].call(this, value, params, property, fields, object);
    }
function(value, type, property, fields, object) {
        if (_.isUndefined(value) || _.isNull(value)) {
            return value;
        }
        var params = {};

        if (_.isArray(type)) {
            params = type[1] || {};
            type   = type[0];
        }

        if (!(type in this._types)) {
            throw new Error('Property type "' + type + '" does not exist!');
        }

        return this._types[type].call(this, value, params, property, fields, object);
    }
function ( value , type , property , fields , object ) { if ( _ . isUndefined ( value ) || _ . isNull ( value ) ) { return value ; } var params = { } ; if ( _ . isArray ( type ) ) { params = type [ 1 ] || { } ; type = type [ 0 ] ; } if ( ! ( type in this . _types ) ) { throw new Error ( 'Property type "' + type + '" does not exist!' ) ; } return this . _types [ type ] . call ( this , value , params , property , fields , object ) ; }
Check and converts property value according to its type

@param {*}      value    Property value
@param {string} type     Property type
@param {string} property Property name
@param {array}  fields   Property fields
@param {object} object   Object to which property belongs

@throws {Error} if specified property type does not exist

@this {metaProcessor}
Check and converts property value according to its type