src/components/meta/Property/Constratins.js
function(value, constraints, property, fields, object) {

        _.each(constraints, function(constraint, name) {
            if (!constraint.call(object, value, fields, property)) {
                throw new Error('Constraint "' + name + '" was failed!');
            }
        });

        return value;
    }
function(value, constraints, property, fields, object) {

        _.each(constraints, function(constraint, name) {
            if (!constraint.call(object, value, fields, property)) {
                throw new Error('Constraint "' + name + '" was failed!');
            }
        });

        return value;
    }
function ( value , constraints , property , fields , object ) { _ . each ( constraints , function ( constraint , name ) { if ( ! constraint . call ( object , value , fields , property ) ) { throw new Error ( 'Constraint "' + name + '" was failed!' ) ; } } ) ; return value ; }
Applies property constraints to object

@param {*}      value        Property value
@param {object} constraints  Hash of property constraints
@param {string} property     Property name
@param {array}  fields       Property fields
@param {object} object       Object

@returns {*} value Processed property value

@throws {Error} if some constraint was failed

@this {metaProcessor}
Applies property constraints to object