• Home
  • About
  • Downloadables

Kibo …

… keeping meat fresh since 1970

Feed on
Posts
Comments

isInArray()

May 17th, 2005 by Intermanaut

If you want to check whether a particular value is in an array, call this function with something like this.

if (isInArray(MyValue, MyArray))

<script type=”text/javascript”>

<!–

function isInArray(needle, arrayHaystack)

{

for (x=0; x < arrayHaystack.length; x++)

if (arrayHaystack[x] == needle)

return true;

return false;

}

–>

</script>

Posted in JavaScript | No Comments

Comments are closed.

  • Recent Posts

    • Today’s Workplace Conversation: Hangovers
    • Alexandra Burke. Oh cock!
    • Mozy Remote Backup: First Impressions
    • Today’s Workplace Conversation: Christmas Decorations
    • Blackberry
  • Things

    • About
    • Addresses worth banning from your forum
    • Downloadables
    • Foamcore Macro Studio
    • Multiplicity: Pouring yourself a beer
    • Multiplicity: The five of me
    • Ross on Wye: What a Mess
  • Stuff

    • Conversations (13)
    • Programming (11)
      • ASP (2)
      • JavaScript (6)
      • PHP (2)
      • VBA (1)
    • Rambles (224)
      • Angry (43)
      • Happy (20)
    • Blogroll

      • 1 city, 2 people, 24 hours
      • del.icio.us
      • EmmieJay - Ethical Fashion
      • flickr

Kibo … © 2009 All Rights Reserved.

MistyLook made free by Web Hosting Bluebook