src/helpers/helpers.core.js
function(value, index, defaultValue) {
		return helpers.valueOrDefault(helpers.isArray(value) ? value[index] : value, defaultValue);
	}
function(value, index, defaultValue) {
		return helpers.valueOrDefault(helpers.isArray(value) ? value[index] : value, defaultValue);
	}
function ( value , index , defaultValue ) { return helpers . valueOrDefault ( helpers . isArray ( value ) ? value [ index ] : value , defaultValue ) ; }
Returns value at the given `index` in array if defined, else returns `defaultValue`.
@param {Array} value - The array to lookup for value at `index`.
@param {number} index - The index in `value` to lookup for value.
@param {*} defaultValue - The value to return if `value[index]` is undefined.
@returns {*}
Returns value at the given index in array if defined else returns defaultValue .