Skip to Content
자바스크립트 완벽 가이드
book

자바스크립트 완벽 가이드

by David Flanagan, Han Seon- yong
February 2022
Beginner to intermediate
784 pages
24h 53m
Korean
Insight
Content preview from 자바스크립트 완벽 가이드
JavaScript
316
11장 자바스크립트 표준 라이브러리
객체에 특별한 프로퍼티나 타입이 있다고 마크(분류)하고 싶다면 WeakSet에 추
가하는 방법이 있습니다. 그리고 다른 코드에서 그 프로퍼티나 타입을 체크할 때
WeakSet의 요소인지 확인하면 됩니다. 일반적인 세트로 이런 일을 하면 마크된 객
체는 모두 가비지 컬렉션 대상이 되지 않지만, WeakSet를 사용하면 그런 걱정이 필
요 없습니다.
11.2
󼫤󻞬󼬣󽴔󻃿󻫃󺇋󽴔󻱃󻺓󽴔󺠿󻱃󼗿
일반적인 자바스크립트 배열은 어떤 타입의 요소든 받을 수 있고 크기도 동적으로
변합니다. 자바스크립트는 배열을 적극적으로 최적화하므로 일반적으로 자바스크
립트 배열은 아주 빠른 편입니다. 하지만 여전히 C나 자바 같은 저수준 언어의 배
열과는 많이 다릅니다. ES6에 도입한
형식화 배열
형식화 배열(typed array)은 C나 자바의 저
수준 배열과 꽤 비슷합니다.
4
형식화 배열은 엄밀히 말해 배열은 아니며
Array.is
Array()
도
false
를 반환합니다. 하지만 형식화 배열은 7.8절에서 설명한 배열 메서
드를 모두 지원하며, 새로 추가된 메서드도 있습니다. 하지만 일반적인 배열과 다
른 아주 중요한 차이가 있습니다.
·
·
형식화 배열의 요소는 모두 숫자입니다. 하지만 일반적인 자바스크립트 숫자
와 달리 형식화 배열은 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

개발자를 위한 필수 수학

개발자를 위한 필수 수학

토머스 닐드
개발 7년차, 매니저 1일차

개발 7년차, 매니저 1일차

권원상, 한민주, 카미유 푸르니에

Publisher Resources

ISBN: 9788966263462