Search

Nalezeno "object": 80

How to Use window.crypto in Node.js


I’ve been writing a bunch of jest tests recently for libraries that use the underlying window.crypto methods like getRandomValues() and window.crypto.subtle key management methods. One problem I run into is that the window.crypto object isn’t available, so I need to shim it. To use...

In Praise of Shadows


Our dear friend Robin has a new essay called In Praise of Shadows. Now, before you hop over there looking for nuggets on CSS box shadows, text shadows, and shadow filters… this is not that. It’s an essay … In Praise of Shadows originally published on CSS-Tricks. You should...

Collective #713


Create a 3D Scroll Gallery with GSAP * CSS object-view-box * Sherpa * OptimizeImages The post Collective #713 appeared first on Codrops

First Look At The CSS object-view-box Property


Ahmad Shadeed — doing what he always does so well — provides an early look at the object-view-box property, something he describes as a native way to crop an image in the browser with CSS. The use case? Well, … First Look At The CSS object-view-box Property originally published...

An Intro to JavaScript Proxy


Have you ever been in a situation where you wish you could have some control over the values in an object or array? Maybe you wanted to prevent certain types of data or even validate the data before storing it … The post An Intro to JavaScript Proxy appeared first on CSS-Tricks. You...

Hero Erects Entire Switch Game Wiki After Finding Little Online


The internet is so big and vast and great and terrible that whenever I can’t find something, I just assume I must not be looking in the right place. In actuality, there’s just a lot of stuff that doesn’t exist because it got deleted or nobody wrote in the first place. That’s what one fan discovered...

Object.entries


Navigating and managing data structures is a really important skill for every level of engineer to have and improve upon. Over the years, the JavaScript language has continued to provide more methods for managing data structures, from Object.keys to Object.values and so on. One of my favorites...

How to Mine Ethereum


Note: I expect a large number of people to object to cryptocurrency mining’s energy use and I totally understand. ...

Bulletproof flag components


A clever use of CSS grid from Jay Freestone to accomplish a particular variation of the media object design pattern (where the image is centered with the title) without any magic numbers anything that isn’t flexible and resiliant. The trick … The post Bulletproof flag components...

React.isValidElement


Knowing what input type you’ve received is hugely important in JavaScript, which is a big reason for Flow and TypeScript’s rise. One such case where it’s useful to know what an object represents is if the input is a string or a React element. To detect if an object is a React...

It’s all relative.


I remember sitting in the back seat of our family’s Subaru station wagon. I was six and this was long before child carseats were a thing. My dad was at the wheel and my mom played 20 Questions with me while we drove to some vacation spot I can’t even remember. It was my mom’s turn...

A Primer on the Different Types of Browser Storage


In back-end development, storage is a common part of the job. Application data is stored in databases, files in object storage, transient data in caches… there are seemingly endless possibilities for storing any sort of data. But data storage isn’t limited only to the back end. The front end (the...

How to Conditionally Add Attributes to Objects


JavaScript is full of tricks that you don’t know you want until you … want … them. Or maybe just until you see them. One trick I recently realized was conditionally adding attributes to React elements. Of course this trick essentially boils down to conditionally adding properties...

Nahoru
Tento web používá k poskytování služeb a analýze návštěvnosti soubory cookie. Používáním tohoto webu s tímto souhlasíte. Další informace