« first day (4371 days earlier)      last day (581 days later) » 

3:40 AM
 
4:04 AM
posted on October 02, 2022 by Ben Mason

Hi everyone! We've just released Chrome Stable 106 (106.0.5249.92) 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

 
 
5 hours later…
8:36 AM
I have an object: const a = { foo: 22, bar: 33 } is there any neat js syntax to deconstruct that data into a string in one line? (without referencing a several times)
const b = `I'm ${bar} years old in ${foo} years`.[...a]
something like that.
 
You can use an IIFE but that's ugly af
What's wrong with destructuring it on another line?
 
I aint going to suggest with syntax ;D
(please don't use that!)
 
well I don't have the const a it's actually a function call (I can of course divide it, but I just wanted to know)
 
const b = (({ foo, bar }) => `I'm ${bar} years old in ${foo} years`)(a)
 
nooooo
 
8:41 AM
but don't do that 😂
 
ok :) I'll divide it instead
 
const { foo, bar } = a;
const b = `I'm ${bar} years old in ${foo} years`;
Honestly nothing wrong with this
 
yes it'll be something like that, but a() instead
 
 
2 hours later…
11:00 AM
  useEffect(() => {
    ;(state.errors as ErrorResponse).errors?.map((er) =>
      setHasSSNError(er.message === 'error.already.exists'),
    )
    return () => {
      setHasSSNError(false)
    }
  }, [state.errors])
Hello
how to refactor this code to remove ';' in front of ()
it's automatically added by Visual Studio Code
Anyone ?
I can't define nested return in useEffect
 
 
3 hours later…
2:23 PM
🤨
 
configure whatever is adding it such that it doesn't add it.
🤦‍♂️
 
 
2 hours later…
4:58 PM
kindly help here
0
Q: How to match two different array set and update non matched object in javascript?

its meI have two different arrays of the object(SquadDetails,powerDetails). I have to match the following condition SquadDetails.memberswithpower.id == powerDetails.id and SquadDetails.memberswithpower.powers = powerDetails.powers/ SquadDetails.memberswithpower.name= powerDetails.name How can match id...

 

« first day (4371 days earlier)      last day (581 days later) »