function decodeEvents(events) {
      // If `events` is falsy return empty array
      if(!events){
        return [];
      }
      // If value passed is an array, return it untouched
      if (_.isArray(events)) return events;

      // If value passed is an object, return it wrapped in an array
      if (_.isObject(events)) return [events];

      // Split name string by spaces
      // and remove falsy values
      return _.compact(events.split(' '));
    }
// Decodes the the `events` arguments and always puts the results in an array
Decodes the the `events` arguments and always puts the results in an array
Decodes the the ` events ` arguments and always puts the results in an array
function decodeEvents(events) {
      if(!events){
        return [];
      }
      if (_.isArray(events)) return events;
      if (_.isObject(events)) return [events];
      return _.compact(events.split(' '));
    }
function decodeEvents ( events ) { if ( ! events ) { return [ ] ; } if ( _ . isArray ( events ) ) return events ; if ( _ . isObject ( events ) ) return [ events ] ; return _ . compact ( events . split ( ' ' ) ) ; }
Decodes the the `events` arguments and always puts the results in an array
Decodes the the ` events ` arguments and always puts the results in an array
// If `events` is falsy return empty array // If value passed is an array, return it untouched // If value passed is an object, return it wrapped in an array // Split name string by spaces // and remove falsy values