- String.prototype.replaceAll(pattern, replacement) :
pattern
과 일치하는 모든 문자열이replacement
로 대체된 새 문자열 반환 - String.prototype.replace(pattern, replacement) :
pattern
과 일치하는 문자열이replacement
로 대체된 새 문자열 반환 (1회성) - String.prototype.repeat(count) : 문자열을
count
번 반복해서 이어붙인 새 문자열 반환 - String.prototype.slice([start], [end]) :
start
에서end
이전까지의 부분 문자열 반환 - String.prototype.split(separator, [limit]) :
separator
를 기준으로 최대limit
개의 부분 문자열 배열 반환 - Array.prototype.join(separator) : 배열의 모든 요소들을
separator
를 기준으로 이어붙인 새 문자열 반환 - String.prototype.charCodeAt(index) : 문자의 UTF-16 코드 반환 (0 - 65535 사이)
- String.fromCharCode(code1, ...) :
code
sequence에 해당하는 UTF-16 문자열 반환 - Array.prototype.filter(callbackFn, thisArg) :
callbackFn
은 (element, index, array) 3개의 argument를 받고 truthy 반환.callbackFn
이 truthy를 반환한 요소만 남김 - Array.prototype.reduce(callbackFn, initialValue) :
callbackFn
은 (accumulator, currentValue, currentIndex, array) 4개의 argument를 받고 누적값을 반환. 마지막으로 호출된callbackFn
의 반환값이 최종 반환값이 됨 - Array.prototype.at(index) :
index
위치에 있는 배열 요소 반환 (음수 index 지원)
- RegExp.prototype.test(str) :
str
에서 정규 표현식에 match되는 문자열이 존재하면true
반환 - String.prototype.match(regexp) : 문자열에서 정규 표현식(
regexp
)과 match되는 부분 문자열의 배열 반환