javascript-code.dev
javascript
html
css
jquery
typescript
angular
node.js
reactjs
npm
arrays
Dark
type assertion
[1/1]
Beyond the Basics: Advanced Type Assertions with "as const" in TypeScript
In TypeScript, "as const" is a special type assertion syntax introduced in version 3.4. It's used to create literal types and make objects or arrays read-only
1