vendor/chart.js/Chart.js
function(inputs, context, index) {
		var i, ilen, value;

		for (i = 0, ilen = inputs.length; i < ilen; ++i) {
			value = inputs[i];
			if (value === undefined) {
				continue;
			}
			if (context !== undefined && typeof value === 'function') {
				value = value(context);
			}
			if (index !== undefined && helpers_core.isArray(value)) {
				value = value[index];
			}
			if (value !== undefined) {
				return value;
			}
		}
	}
function(inputs, context, index) {
		var i, ilen, value;

		for (i = 0, ilen = inputs.length; i < ilen; ++i) {
			value = inputs[i];
			if (value === undefined) {
				continue;
			}
			if (context !== undefined && typeof value === 'function') {
				value = value(context);
			}
			if (index !== undefined && helpers_core.isArray(value)) {
				value = value[index];
			}
			if (value !== undefined) {
				return value;
			}
		}
	}
function ( inputs , context , index ) { var i , ilen , value ; for ( i = 0 , ilen = inputs . length ; i < ilen ; ++ i ) { value = inputs [ i ] ; if ( value === undefined ) { continue ; } if ( context !== undefined && typeof value === 'function' ) { value = value ( context ) ; } if ( index !== undefined && helpers_core . isArray ( value ) ) { value = value [ index ] ; } if ( value !== undefined ) { return value ; } } }
Evaluates the given `inputs` sequentially and returns the first defined value.
@param {Array} inputs - An array of values, falling back to the last value.
@param {object} [context] - If defined and the current value is a function, the value
is called with `context` as first argument and the result becomes the new input.
@param {number} [index] - If defined and the current value is an array, the value
at `index` become the new input.
@since 2.7.0
Evaluates the given inputs sequentially and returns the first defined value .