What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Replace Problem

Replace Problem
Author: Message:
Eljay
Elite Member
*****

Avatar
:O

Posts: 2949
Reputation: 77
– / Male / –
Joined: May 2004
RE: Replace Problem
quote:
Originally posted by Spunky
quote:
Originally posted by Eljay
How was y defined? for..in loops The in keyword is for Objects, not Arrays. :P

Arrays are Objects :p

Well yeah, but the in keyword returns true because of all the built-in Array functions. Try using:

js code:
if(y.hasOwnProperty(strip(x[0]))

???
08-02-2011 09:00 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Replace Problem - by Spunky on 08-02-2011 at 08:21 PM
RE: Replace Problem - by matty on 08-02-2011 at 08:33 PM
RE: Replace Problem - by Spunky on 08-02-2011 at 08:36 PM
RE: Replace Problem - by Eljay on 08-02-2011 at 08:48 PM
RE: Replace Problem - by whiz on 08-02-2011 at 08:48 PM
RE: Replace Problem - by Spunky on 08-02-2011 at 08:52 PM
RE: Replace Problem - by Eljay on 08-02-2011 at 09:00 PM
RE: Replace Problem - by Spunky on 08-02-2011 at 09:02 PM
RE: Replace Problem - by Matti on 08-03-2011 at 08:50 AM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On