lib/index.js
function hasRemoteMethod(model, methodName) {
  return model.sharedClass
    .methods({ includeDisabled: false })
    .map(sharedMethod => sharedMethod.name)
    .includes(methodName)
}
function hasRemoteMethod(model, methodName) {
  return model.sharedClass
    .methods({ includeDisabled: false })
    .map(sharedMethod => sharedMethod.name)
    .includes(methodName)
}
function hasRemoteMethod ( model , methodName ) { return model . sharedClass . methods ( { includeDisabled : false } ) . map ( sharedMethod => sharedMethod . name ) . includes ( methodName ) }
Helper method to check if a remote method exists on a model
@param model The LoopBack Model
@param methodName The name of the Remote Method
@returns {boolean}
Helper method to check if a remote method exists on a model