index.js
function salute (cb) {
  let value
  try {
    value = cb()
    if (value instanceof Error) value = Promise.reject(value)
  } catch (e) {
    value = Promise.reject(e)
  }
  return value
}
function salute (cb) {
  let value
  try {
    value = cb()
    if (value instanceof Error) value = Promise.reject(value)
  } catch (e) {
    value = Promise.reject(e)
  }
  return value
}
function salute ( cb ) { let value try { value = cb ( ) if ( value instanceof Error ) value = Promise . reject ( value ) } catch ( e ) { value = Promise . reject ( e ) } return value }
Simulate salute behavious.

@param {Function} cb
@see https://github.com/bredele/salute
@api private
Simulate salute behavious .