Skip to content

Latest commit

 

History

History
16 lines (11 loc) · 354 Bytes

default_error.md

File metadata and controls

16 lines (11 loc) · 354 Bytes

Throws the specified error

Arguments

  1. err (Any): The error to throw

Example

var defaultError = Rx.helpers.defaultError;

// Returns its value
defaultError(new Error('woops'))
// => Error: woops