>
>Message: 9
>Message-ID: <002f01c0b88e$e93d0110$c000a8c0@cwworkstation>
>From: "Doug Melvin" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>References: <[EMAIL PROTECTED]>
>Subject: Re: [Dynapi-Dev] Re: structure change ideas
>
>Alrighty then, since I can't help very much with bug hunting,
>How about I put this fourth year algorithms book to good use and start on
>some
>JSext stuff..
>
>So we need (want):
>array.splice();
Yes !, If someone has a complete implementation
>isArray(a); <-- is there not a typeOf() in JS? If not, would typeOf () be
>acceptable?
Yes, but it seems, as far as I remeber, that typeOf(enArray) returns
"object", so you can't really know from that wheteher it is an array or not..
>Array.prototype.toString()
Just to print it out like "[foo, bar, gee]"
>Array.prototype.contains(element); How this work? return tru if the argument
>can be found, false if not?
Exactly. I have some non optimized code for that, but I can easily be
modified to make it faster.
>Array.prototype.push(element)
>Array.prototype.pop()
>
>deleteAndPack(array, indice) (equivalent to removeFromArray) <-- let's just
>call it removeFromArray(index/id); ?
Ok for me...
>String.prototype.trim() < -- I've been wanting this one for a while.. myself
Someone sent it on the list a time ago....
>Array.prototypepseudoSplice() this does what?!?!?
It is an incomplete splice implementation I made, but, again, if someone
has a complete replacement....
>And I still agree about attribute renaming (_x)...
As mentionned earlyer, me too....
Note that for all the methods I proposed, I can send some code in.
I also have a 'Array.prototype.getUnique()' method, which returns the array
whithout any duplicate element. May help sometimes...
Marc
_______________________________________________
Dynapi-Dev mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-dev