Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1045261
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T15:57:29+00:00 2026-05-16T15:57:29+00:00

in my javascript, i have an Array of Calendar objects. Each Calendar objects has

  • 0

in my javascript, i have an Array of Calendar objects.

Each Calendar objects has an array of CalendarEvent objects

Each CalendarEvent object has a property Date, Name.

i want to check, give a date, it its exists in a specific Calendar.

I wanted to see if i could use jquery.InArray() but it seems like i have to loop through every CalendarEvent object in the Calendar to find it.

is there any faster way to do this search ??

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T15:57:30+00:00Added an answer on May 16, 2026 at 3:57 pm

    is there any faster way to do this search ??

    You can build an index (e.g. a reverse lookup).

    For example, your Calendar object could have an object of Date => CalendarEvent mappings. The key (the Date) must be serialized to a string (to be inserted into the object), so you may want to use the UNIX time as the key.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an array of objects in javascript, each of which in turn has
I have a JavaScript array of objects with the same properties each, something like
I have an array of JavaScript objects: var objs = [ { first_nom: 'Laszlo',
I have this array, that I want to parse into javascript. $offerText[] = (
I have an JavaScript object like this: id=1; name = serdar; and I have
'i have JavaScript associative array name 'options' <script> options[dynamickey] = Number; </script> and i
I have an array of javascript objects like the following: var food = [
I have an array of objects in javascript and I know that I need
I have a JavaScript array of objects like this: box[0] = {...} box[1] =
I have Javascript array which contains User object. I have created this array from

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.