Explain Codes LogoExplain Codes Logo

Javascript

Get the index of the object inside an array, matching a condition

javascript
performance
optimization
best-practices

'transform3d' not working with position: fixed children

javascript
positioning
css-transforms
dom-manipulation

Error: 'types' can only be used in a .ts file - Visual Studio Code using @ts-check

javascript
type-checking
vs-code
javascript-development

Using ngIf without an extra element in Angular 2

javascript
angular
template-engineering
best-practices

How to "properly" create a custom object in JavaScript?

javascript
object-oriented-programming
es6-classes
prototypes

Json.stringify output to div in pretty print way

javascript
json-stringify
pretty-print
html-tag

How to bind dynamic data to aria-label?

javascript
aria-label
angular
accessibility

Counting the number of option tags in a select tag in jQuery

javascript
prompt-engineering
callbacks
performance

How do I empty an array in JavaScript?

javascript
array-clearing
performance-benchmark
browser-compatibility

Find object by id in an array of JavaScript objects

javascript
prompt-engineering
functions
callbacks

React-router scroll to top on every transition

javascript
react-router
scrolling
smooth-scroll

What is the most efficient way to concatenate N arrays?

javascript
array-handling
performance-optimization
javascript-performance

Jquery checkbox change and click event

javascript
event-handling
checkbox
jquery

Make React useEffect hook not run on initial render

javascript
use-effect
react-hooks
optimization

Index inside map() function

javascript
map-function
indexing
immutable-js

Zoom in on a point (using scale and translate)

javascript
responsive-design
performance
best-practices

How to remove spaces from a string using JavaScript?

javascript
regex-patterns
string-manipulation
performance-considerations

Serializing to JSON in jQuery

javascript
json-serialization
jquery
browser-compatibility

Removing highcharts.com credits link

javascript
prompt-engineering
highcharts-api
credits-management

Javascript - Replace all commas in a string

javascript
prompt-engineering
functions
callbacks