Skip to content

Commit

Permalink
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion corelib/array.rb
Original file line number Diff line number Diff line change
@@ -553,7 +553,7 @@ def each_index(&block)
end

def empty?
`!#{self}.length`
`self.length === 0`
end

def fetch(index, defaults = undefined, &block)

0 comments on commit a689a4c

Please sign in to comment.