//remove an entry (string) from a list of strings Array.prototype.removeEntry = function( entry:String ) { if ( @IsNotMember(entry, this)) { return this; } var res = @Trim( @Replace(this, entry, "") ); return (typeof res == "string" ? (res.length==0 ? [] : [res]) : res); }