« first day (4269 days earlier)      last day (662 days later) » 

1:47 AM
@Wendaolee 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.
 
Hey, so I'm trying to find the letter that repeats the most and return it, I've already split the string into an array and I'm trying to find the letter that repeats the most but I haven't been able to do it, any idea?

const myString = 'Hey, I like programing';

function findMostCommonLetter(text) {
    let toArray = text.split('');
    let inHere = [];

    for (let i = 0; i < toArray.length; i++) {
        inHere.push(toArray[i])
    }

  }
  console.log(findMostCommonLetter(myString));
 
 
1 hour later…
2:52 AM
hi
can somebody help me to solve the error?
in reactjs project
 
3:15 AM
i'd start by seeing why eslint is complaining about it.
The message seems to indicate that it wants a particular plugin installed
is there a reason other than this error to install said plugin?
 
I don't know
I have installed decorator-legacy plugin
 
 
3 hours later…
sid
6:24 AM
anyone here worked with chrome extension and react ?
 
 
7 hours later…
1:03 PM
Weird that there is no <input type="year"/> I mean, yes, you can just use something like <input type="number" min="1900" max="2100" step=1 /> but I find it strange that you have to do something like that when there is type="month" and type="week". It's a bit inconsistent.
 
1:34 PM
@AngelArias two words: hash map. Implementation is left as an exercise for the reader
hint #2: strings are iterable
 
1:56 PM
useless hint: Strings are also used when sewing.
 
useless hint #2: strings are also used in string instuments
 
2:09 PM
On mostly unrelated note, I finally got to play with the pluralisation API and it's not bad. I threw this together during a meeting just to showcase it: jsbin.com/keseguxima/1/edit?html,js,output
So, please ignore that it's not great. It's just a proof of concept.
But it just shows different time units in plural or singular in two languages
So you can get "1 year 5 months 3 days 1 hour" for example.
 
2:23 PM
Using Intl for locale-aware strings has quite a nice feel
 
 
2 hours later…
4:45 PM
Hello
Can you please see my question
https://stackoverflow.com/questions/72747092/react-hook-form-watch-selected-option-from-dropdown-mui
 
5:00 PM
@OlegValteriswithUkraine lol truth.
 
 
1 hour later…
6:15 PM
Jun 17 at 16:06, by VLAZ
OK, I don't know what people in this room thing about pineapple on pizza (I don't mind but also don't buy it) but here is something I just found: pizza with figs.
Jun 17 at 16:06, by VLAZ
The ingredients state: tomato sauce, prosciutto crudo, figs, parmesan
So...I actually ordered this
Review: it's not as bad as I thought. In fact, I like it more than pineapple pizza. And I'm not against pineapple pizza, I just don't order it because there are better pizzas. I think the same would happen with the fig pizza, though.
The sweetness is not as strong as with pineapple and it's actually nice. It reminds me a lot of caramelised onions. But it also just makes me wonder, why they didn't just put caramelised onions instead.
So, final verdict - it's decent. But I'd probably still stick to other pizzas.
 
6:34 PM
posted on June 24, 2022 by Ben Mason

Hi everyone! We've just released Chrome Stable 103 (103.0.5060.63) for iOS; it'll become available on App Store in the next few hours. This release includes stability and performance improvements. You can see a full 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

 
7:32 PM
I am trying to achieve this situation
Check if array contains object , if it's there it's possible to toggle that object
and also to add new objects to the existing array
Partially works, I can toggle object, add and remove on the second click
but when I try to add another, the first is removed
How to do that , can you help me ?
 
8:16 PM
    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);
      }
    },
this code works but when I try to add another contact as favorite, first is removing
can you help me how to fix that ?
 
9:09 PM
@OlegValteriswithUkraine "string instruments", dang it
 
9:40 PM
posted on June 24, 2022 by Prudhvikumar Bommana

 The Dev channel has been updated to 105.0.5137.4 for Mac, Linux and Windows. A partial list of changes is available in the log. Interested in switching release channels? Find out how. If you find a new issue, please let us know by filing a bug. The community help forum is also a great place to reach out for help or learn about common issues. Prudhvikumar Bommana Google Chrome 

posted on June 24, 2022 by Ben Mason

The Dev channel has been updated to 105.0.5137.4 for Windows, Mac and Linux. A partial list of changes is available in the Git log. Interested in switching release channels? Find out how. If you find a new issue, please let us know by filing a bug. The community help forum is also a great place to reach out for help or learn about common issues. Prudhvi Bommana Google Chrome

 
10:40 PM
 

« first day (4269 days earlier)      last day (662 days later) »