src/components/meta/Property/Type.js
function(value, params, property) {
            value = +value;

            if ('min' in params && value < params.min) {
                throw new Error('Value "' + value +
                    '" of property "' + property + '" must not be less then "' + params.min + '"!');
            }
            if ('max' in params && value > params.max) {
                throw new Error('Value "' + value +
                    '" of property "' + property + '" must not be greater then "' + params.max + '"!');
            }
            return value;
        }
function(value, params, property) {
            value = +value;

            if ('min' in params && value < params.min) {
                throw new Error('Value "' + value +
                    '" of property "' + property + '" must not be less then "' + params.min + '"!');
            }
            if ('max' in params && value > params.max) {
                throw new Error('Value "' + value +
                    '" of property "' + property + '" must not be greater then "' + params.max + '"!');
            }
            return value;
        }
function ( value , params , property ) { value = + value ; if ( 'min' in params && value < params . min ) { throw new Error ( 'Value "' + value + '" of property "' + property + '" must not be less then "' + params . min + '"!' ) ; } if ( 'max' in params && value > params . max ) { throw new Error ( 'Value "' + value + '" of property "' + property + '" must not be greater then "' + params . max + '"!' ) ; } return value ; }
Number property type
Converts value to number, applies 'min' and 'max' parameters

@param {*}      value    Property value
@param {object} params   Property parameters
@param {string} property Property name

@throws {Error} if value less then 'min' parameter
@throws {Error} if value greater then 'max' parameter

@returns {number} Processed property value

@this {metaProcessor}
Number property type Converts value to number applies min and max parameters