lib/extensions.js
function(value, ifFn, elseFn) {
			if ((ifFn && typeof ifFn !== 'function') || (elseFn && typeof elseFn !== 'function')) return apiRejection('ifFn and elseFn must be functions');

			var fn = value ? ifFn : elseFn;
			if (!fn) return Promise.resolve(value);

			return Promise.resolve(fn.call(this, value));
		}
function(value, ifFn, elseFn) {
			if ((ifFn && typeof ifFn !== 'function') || (elseFn && typeof elseFn !== 'function')) return apiRejection('ifFn and elseFn must be functions');

			var fn = value ? ifFn : elseFn;
			if (!fn) return Promise.resolve(value);

			return Promise.resolve(fn.call(this, value));
		}
function ( value , ifFn , elseFn ) { if ( ( ifFn && typeof ifFn !== 'function' ) || ( elseFn && typeof elseFn !== 'function' ) ) return apiRejection ( 'ifFn and elseFn must be functions' ) ; var fn = value ? ifFn : elseFn ; if ( ! fn ) return Promise . resolve ( value ) ; return Promise . resolve ( fn . call ( this , value ) ) ; }
if value is truthy, run ifFn, otherwise run elseFn returns value for whichever function is run
if value is truthy run ifFn otherwise run elseFn returns value for whichever function is run