A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://developer.mozilla.org/ko/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/toString below:

TypedArray.prototype.toString() - JavaScript | MDN

TypedArray.prototype.toString()

Baseline Widely available

TypedArray 인스턴스의 toString() 메서드는 명시된 형식화 배열과 배열의 요소를 표현하는 문자열을 반환합니다. 이 메서드는 Array.prototype.toString()과 같은 알고리즘을 가집니다.

시도해 보기
const uint8 = new Uint8Array([10, 20, 30, 40, 50]);

const uint8String = uint8.toString();

console.log(uint8String.startsWith("10"));
// Expected output: true
구문 매개변수

없음.

반환 값

해당 형식화 배열을 표현하는 문자열.

설명

좀 더 많은 정보는 Array.prototype.toString()을 참고하시기 바랍니다. 이 메서드는 범용적이지 않으며, 형식화 배열 인스턴스에서만 호출됩니다.

예제 형식화 배열을 문자열로 변환하기
const uint8 = new Uint8Array([1, 2, 3]);
// 명시적 변환
console.log(uint8.toString()); // 1,2,3
// 암시적 변환
console.log(`${uint8}`); // 1,2,3
명세서 브라우저 호환성 같이 보기

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4