dist/angularjs-rails-resource.js
function getService(service) {
            // strings and functions are not considered objects by angular.isObject()
            if (angular.isObject(service)) {
                return service;
            } else if (service) {
                return createService(service);
            }

            return undefined;
        }
function getService(service) {
            // strings and functions are not considered objects by angular.isObject()
            if (angular.isObject(service)) {
                return service;
            } else if (service) {
                return createService(service);
            }

            return undefined;
        }
function getService ( service ) { // strings and functions are not considered objects by angular.isObject() if ( angular . isObject ( service ) ) { return service ; } else if ( service ) { return createService ( service ) ; } return undefined ; }
Looks up and instantiates an instance of the requested service if .
@param {String|function|Object} service The service to instantiate
@returns {*}
Looks up and instantiates an instance of the requested service if .