How different values of the object-fit CSS property behave for image elements • fill - the picture fully fits into the specified dimensions without observing its own proportions • contain - the picture will adjust to the specified dimensions so as to fit inside completely without violating the proportions • cover - the picture will fill the entire available area without violating the proportions, cutting off everything unnecessary
- 0 replies
- 0 recasts
- 0 reactions
Advanced JavaScript debugging using console.table() Pretty neat, isn't it? Of course, table works best with tabular data. If all objects have completely different fields, you will get a table in which most of the cells are undefined. But despite this, everything will look neat, giving you a good overall overview
- 0 replies
- 0 recasts
- 0 reactions
Swiss knife for working with arrays. Method reduce() The reduce method collapses the array to one value (reducts) e using the passed colback function and the initial value. The callback function will be called for each element of the array, and should always return the result
- 0 replies
- 0 recasts
- 0 reactions