Home

Webdev

Unicode Javascript Vizualization Websites Cloudflare Css Descriptions Devops Generators Google Misc Ml React Tutorials Js Html

Don't Look! I'm changing!

URL Copied

Code_JS

web vitals extension arr.at(-1) deep copy = immutiable = JSON.parse(JSON.stringify(obj)) == structuredClone(obj) import maps alllow you to define a bunch of js modules at once (front end) view transition api animation timeline - experimental

cosnt grouped by = Object.groupBy([{},{},{}], fn) toSorted -> keeps initial arr immutable

  1. function fn(){ console.log(arguements) } The arguments object contains all the parameters passed to the function but is not available in arrow functions....
  2. In arrow functions, 'this' does not have its own binding but instead retains the value of this from the enclosing lexical context.
  3. object destructuring: assign to variables values extracted from a nested object const x=today.min and const y=today.max === const {today: {min: x,max: y } } = {today: { min: 10, max: 30} }
  4. url.searchParams.append(key, params[key]),

document.currentScript window.top data.color ||= "#745DDE";

const screenSizeQuery = window.matchMedia("(min-width: 550px)"); screenSizeQuery.addEventListener("change", handleScreenSizeChange);

window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change", e => { localStorage.setItem("theme", e.matches ? "dark" : "light")

Click here to copy