« first day (4268 days earlier)      last day (672 days later) » 

2:36 AM
any good docs regarding Node conversion to modules? Trying to figure out how to run a file from a package.json scripts and also be able to export a function.
 
3:29 AM
hmm
!! or ||
 
 
6 hours later…
9:49 AM
@DᴀʀᴛʜVᴀᴅᴇʀ eh, does the module have side-effects? You can run any JS file with Node if you want, it is orthogonal to the file being a module
And NPM scripts are just shell scripts
 
10:00 AM
I am using okta sign-in in widget with react, I have added multiple IDPs as third party providers, So lf i already logged in with one of the idp which i have integrated and after that let's say i try to login throgh okta sigin in widget using same provider but this time i am using different email id but it redirect external idp provider and logged in with previous user , so how can i ask to login user again instead of logged in with same user ?
 
@PrashantShah Welcome to the JavaScript chat! Please review the room rules. If you have a question, just post it, and if anyone's free and interested they'll help. If you want to report an abusive user or a problem in this room, visit our meta.
 
 
2 hours later…
12:04 PM
posted on June 23, 2022 by Ben Mason

Hi everyone! We've just released Chrome Beta 104 (104.0.5112.18) for Android. It's now available on Google Play. You can see a partial list of the changes in the Git log. For details on new features, check out the Chromium blog, and for details on web platform updates, check here. If you find a new issue, please let us know by filing a bug. Erhu Akpobaro Google Chrome

 
 
1 hour later…
1:16 PM
posted on June 23, 2022 by Ben Mason

Hi everyone! We've just released Chrome Dev 105 (105.0.5135.3) for Android. It's now available on Google Play. You can see a partial list of the changes in the Git log. For details on new features, check out the Chromium blog, and for details on web platform updates, check here. If you find a new issue, please let us know by filing a bug. Krishna Govind Google Chrome

 
 
3 hours later…
3:51 PM
!!blt or baconeggandcheese
 
baconeggandcheese
 
4:13 PM
James has spoken.
 
4:47 PM
Hello
Do you have experience with React Material UI ?
I am trying to implement MUI Table with list of contacts
but also one of the requirements is to make an option to check the contact as favorite
by click on the star icon
 
5:04 PM
posted on June 23, 2022 by Ben Mason

Hi everyone! We've just released Chrome Beta 104 (104.0.5112.22) for iOS; it'll become available on App Store in the next few days. You can see a partial list of the changes in the Git log. If you find a new issue, please let us know by filing a bug. Harry Souders Google Chrome

 
 
2 hours later…
7:22 PM
hi guys can anyone help me with this question, i am struggling with finding a solution
0
Q: I am having trouble visualizing sorting algorithms

Coder apprenticeI am trying to visualize a sorting algorithm with react, my algorithm works fine but i want to link it to divs on the DOM that change their height as the sorting algorithms sorts a given array, i have only made it work at the last stage, for example divs on the DOM take their height from an unsor...

 
 
2 hours later…
9:48 PM
Hello
toggleFavorite: (state, action) => {
      /**
       * Returns the index of the first element in the array that satisfies the provided testing function
       */
      const index = state.favorites.findIndex(
        (contact) => contact.id === action.payload.id
      );
      if (index === -1) {
        state.favorites.push(action.payload);
      } else {
        state.favorites.splice(index, 1);
      }
    },
I am trying to toggleFavorites like this
but when I click on another , then all other reset
any idea how to fix this ?
I have table with 2 columns
<Checkbox
                          color="secondary"
                          icon={<StarBorderIcon />}
                          checked={favorites.includes(row)}
                          checkedIcon={<StarIcon />}
                          onChange={() => dispatch(toggleFavorite(row))}
                        />
it's totally different rows , I am not sure why it's related in this case ?
 
10:13 PM
@AngelArias Please don't post unformatted code - use the up arrow to edit your post, then hit Ctrl + K to format the code in that post. See the faq. You have 25 seconds to edit and format your message properly before it will be removed. Please separate code blocks from your actual question. Put your question in 1 message and then your code in a 2nd and format it.
For posting large code blocks, use a paste site like like gist.github.com, hastebin.com, pastie.org or a demo site like jsbin.com
1 message moved to Trash can
 
Hello everyone! I'm trying to take out an object out of an array, the whole object, but I'm having difficulties doing it, any idea how to do it?

  function findUser(users, name) {
    let newArray = [];
    for (let i = 0; i < users.length; i++) {
        if(users[i].name === name){
            newArray.push(users[i])
        }
    }
    return newArray;
  }

  console.log(findUser(myFunc, name)); ([ { name: 'Gustavo', gender: 'male', age: 49 } ])
 
Not sure what the myFunc is however I'd do something like this,
function findUser(users, name) {
  return users.filter(user => user.name === name);
}
I'm a dork, didn't need the map :p
 
posted on June 23, 2022 by Srinivas Sista

The Chrome team is excited to announce the promotion of Chrome 104 to the Beta channel for Windows, Mac and Linux. Chrome 104.0.5112.20 contains our usual under-the-hood performance and stability tweaks, but there are also some cool new features to explore - please head to the Chromium blog to learn more! A full list of changes in this build is available in the log. Interested in switching

 

« first day (4268 days earlier)      last day (672 days later) »