jamon.js
function getSetRemoveProperty (collection, property, value) {
		if (isUndefined(value)) {
			// get property of first element if there is one
			return collection[0] ? collection[0][property] : undefined;
		} else if (value !== null) {
			collection.forEach(element => element[property] = value)
		} else {
			collection.forEach(element => delete element[property])
			}

		return collection;
	}
function getSetRemoveProperty (collection, property, value) {
		if (isUndefined(value)) {
			// get property of first element if there is one
			return collection[0] ? collection[0][property] : undefined;
		} else if (value !== null) {
			collection.forEach(element => element[property] = value)
		} else {
			collection.forEach(element => delete element[property])
			}

		return collection;
	}
function getSetRemoveProperty ( collection , property , value ) { if ( isUndefined ( value ) ) { // get property of first element if there is one return collection [ 0 ] ? collection [ 0 ] [ property ] : undefined ; } else if ( value !== null ) { collection . forEach ( element => element [ property ] = value ) } else { collection . forEach ( element => delete element [ property ] ) } return collection ; }
Get, set or remove element properties
@private
@param  {Jamon} collection - The Jamón instance
@param  {string} property - Property name
@param  {string|null|undefined} value - Property value (null to remove property)
@return {Jamon}
Get set or remove element properties