Dan K.
0
Q:

dont starve together

(checkValue ===3 ? fn1:fn2)(); // Short Version
0
mustHaveCheck = () => {  throw new Error(‘Missing parameter!’);}methodShoudHaveParam = (param = mustHaveCheck()) => {  return param;}
0
const pets = [  { type: 'Dog', name: 'Max'},  { type: 'Cat', name: 'Karl'},  { type: 'Dog', name: 'Tommy'},]pet = pets.find(pet => pet.type ==='Dog' && pet.name === 'Tommy');console.log(pet); // { type: 'Dog', name: 'Tommy' }
0

New to Communities?

Join the community