#50 new
Xavier Noria

compact() implementation

Reported by Xavier Noria | December 26th, 2007 @ 09:43 AM | in Second Edition

Prototype at least as of version 1.5.0 (I've not checked previous versions) has a different implementation of compact(), which is

  compact: function() {
    return this.select(function(value) {
      return value != null;
    });
  },

Comments and changes to this ticket

Please Login or create a free account to add a new comment.

You can update this ticket by sending an email to from your email client. (help)

Create your profile

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

People watching this ticket