@Luggage Yup, took my array of arrays, then mapped it to an array of objects, now I'm trying to combine like objects. Someone said to use reduce for that.
ok, made the change, have known property names, but have multiple objects that have the same id, but that shouldn't be a problem now that i think about it. i should be able to find the table row that has that id, then drop the value into the appropriate date cell
@Luggage Yeah exactly, something like that, but hold on...that may not be necessary, as long as I can just go through the objects and put the values where they go.
I thought grouping them would make things easier, but maybe not.
@ManuelStoilov Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq. For posting large code blocks, use a paste site like gist.github.com, hastebin.com, pastie.org or a demo site like jsbin.com
Without using your list, I could loop through my array of objects, take the id, find the row with that id, find the cell in that row that has that date, then drop that value into the input box. It's not the best way, but I think it could work.
That definitely removed the error, thanks y'all. Still, the class isn't updating when I click.
for (var i = 0; i < navAnchors.length; i++) {
$("navAnchor").eq(i).click(function(){
$(this).classList.add("activePage");
});
}
Oh oh, I know why I wanted to combine the objects! I was using my object array to make these rows in the table, but when I have objects of the same person, it makes multiple rows for them when they only need one. That's why I needed the combination.
I'm all about throwing out old VB programs, but if I was in charge, I'd feel pretty nervous that devs were re-writing programs jsut because they couldn't recompile the old one.
@rlemon https://gist.github.com/Manistoi/a8ff6ebaa66ed666beaf65a41f06d4b2 All I'm trying to do is add the 'activePage' class to each of the 'navAnchors'
I don't know where all the files are to recompile it, my computer is not setup to do VB development, such as having all the dependencies he had to do his nifty tricks in Excel or whatever, I don't know VB, I don't know Visual Studio which seems to be the thing you want to use, and I don't know his program. Figuring all that out would take longer than just recreating it given what I have and know.
Up until this point I've been able to make/produce anything asked of me (with the help of this site and chat of course), but this one is challenging me, which is good and bad at the same time.
> It's also possible to pass a function with the signature function(state, props). This can be useful in some cases when you want to enqueue an atomic update that consults the previous value of state+props before setting any values.
Yeah I'm not gonna make a separate array of unique values because that stills leaves me with my array of objects that are not ready for use. I gotta combine their stuff.
I think part of the problem, also, is this e.persist() on an event. What's the point of that? Just that this.setState is async and therefore the event would have already been garbage collected before the state is set effectively?
@MadaraUchiha yep, actually I'm reading about koa (used for the project's server) and one thing leading to another am seeing a lot of these async generators and functions. thanks for the help!
Yeah, to the first key. What if you have an object at a key, eg, { thing: { magic: true }, meow: true }. You would have to make a new object for thing, wouldn't you?
cat puked on the sofa, we have the insurance and warranty crap -- call them up, they're sending ME cleaning crap and if that doesn't work then they're sending a professional.
you'd think they'd send the professional to apply chems to fabric first?
I'm not making a listing of uniques anymore, I'm combining objects, ok, so I would still do my loop for comparison, but instead of splicing, combine the object...
Yeah, confused myself for a moment. Thought I was still making a unique list.
@KevinB Damn dude, you just saved me hours of work. Gonna absorb this so I understand what's it doing so I can use it in the future. Thank you much and everyone else.
Working in isolation is not helping my skills. I wish I had a team to bounce off of.