Determine if note or args is a rest

rest?  note_or_args (number_symbol_or_map)

Given a note or an args map, returns true if it represents a rest and false if otherwise

Introduced in v2.1

Examples

# Example 1

puts rest? nil



# true



# Example 2

puts rest? :r



# true



# Example 3

puts rest? :rest



# true



# Example 4

puts rest? 60



# false



# Example 5

puts rest? {}



# false



# Example 6

puts rest? {note: :rest}



# true



# Example 7

puts rest? {note: nil}



# true



# Example 8

puts rest? {note: 50}



# false