Returns the elements of the specified sequence or the specified value in a singleton sequence if the sequence is empty.
[defaultValue=null] (Any): The value to return if the sequence is empty. If not provided, this defaults to null.
[defaultValue=null]
Any
(Observable): An observable sequence that contains the specified default value if the source is empty; otherwise, the elements of the source itself.
Observable
Last updated 5 years ago