#1158 new
T.J. Crowder

Add Hash#clear

Reported by T.J. Crowder | October 21st, 2010 @ 08:50 AM | in After 1.7

I'm sure I've seen this question before:
...but I don't see a closed ticket for it. So this is the ticket: Let's add a #clear method to Hash. Implementation is trivial:

function clear() {
    this._object = {};

But I'm sure I saw a discussion of this in the past, so do people not want this for some reason?

If people do want this, let me know and I'll do it on git and send a pull request. For 1.7.1.

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

The Prototype JavaScript library.

Shared Ticket Bins

People watching this ticket